support the lnurl fallback scheme.
completing https://github.com/lnbits/lnbits/issues/63
This commit is contained in:
parent
435f5405c6
commit
32d75f7a60
|
@ -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')) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user