Merge pull request #538 from talvasconcelos/fix/withdrawQR
Fix LNURLw QR code
This commit is contained in:
commit
c58e2c5d74
1 changed files with 2 additions and 2 deletions
|
|
@ -364,12 +364,12 @@ new Vue({
|
|||
},
|
||||
decodeRequest: function () {
|
||||
this.parse.show = true
|
||||
|
||||
let req = this.parse.data.request.toLowerCase()
|
||||
if (this.parse.data.request.startsWith('lightning:')) {
|
||||
this.parse.data.request = this.parse.data.request.slice(10)
|
||||
} 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) {
|
||||
} else if (req.indexOf('lightning=lnurl1') !== -1) {
|
||||
this.parse.data.request = this.parse.data.request
|
||||
.split('lightning=')[1]
|
||||
.split('&')[0]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue