Cashu: fix decode QR link (#1472)

This commit is contained in:
calle 2023-02-06 18:00:31 +01:00 committed by GitHub
parent 4593f7a942
commit 9467a8da07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1655,8 +1655,8 @@ page_container %}
// } else if (req.indexOf('cashu:') !== 1) {
// this.receiveData.tokensBase64 = req.slice(req.indexOf('cashu:'))
// reqtype = 'cashu'
} else if (req.indexOf('eyJwcm') == 0) {
// very dirty way of parsing cashu tokens
} else if (req.indexOf('eyJwcm')) {
// 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'))
reqtype = 'cashu'
}