support the lnurl fallback scheme.

completing https://github.com/lnbits/lnbits/issues/63
This commit is contained in:
fiatjaf 2020-10-17 15:23:58 -03:00
parent 435f5405c6
commit 32d75f7a60

View File

@ -329,9 +329,10 @@ new Vue({
if (this.parse.data.request.startsWith('lightning:')) {
this.parse.data.request = this.parse.data.request.slice(10)
}
if (this.parse.data.request.startsWith('lnurl:')) {
} else if (this.parse.data.request.startsWith('lnurl:')) {
this.parse.data.request = this.parse.data.request.slice(6)
} else if (this.parse.data.request.indexOf('lightning=lnurl1') !== -1) {
this.parse.data.request = this.parse.data.request.split('lightning=')[1]
}
if (this.parse.data.request.toLowerCase().startsWith('lnurl1')) {