Cashu: fix decode QR link (#1472)
This commit is contained in:
parent
4593f7a942
commit
9467a8da07
1 changed files with 2 additions and 2 deletions
|
|
@ -1655,8 +1655,8 @@ page_container %}
|
||||||
// } else if (req.indexOf('cashu:') !== 1) {
|
// } else if (req.indexOf('cashu:') !== 1) {
|
||||||
// this.receiveData.tokensBase64 = req.slice(req.indexOf('cashu:'))
|
// this.receiveData.tokensBase64 = req.slice(req.indexOf('cashu:'))
|
||||||
// reqtype = 'cashu'
|
// reqtype = 'cashu'
|
||||||
} else if (req.indexOf('eyJwcm') == 0) {
|
} else if (req.indexOf('eyJwcm')) {
|
||||||
// very dirty way of parsing cashu tokens
|
// very dirty way of parsing cashu tokens from either a pasted token or a URL like https://host.com?token=eyJwcm
|
||||||
this.receiveData.tokensBase64 = req.slice(req.indexOf('eyJwcm'))
|
this.receiveData.tokensBase64 = req.slice(req.indexOf('eyJwcm'))
|
||||||
reqtype = 'cashu'
|
reqtype = 'cashu'
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue