mirror of
https://github.com/lnbits/lnbits.git
synced 2025-09-28 12:56:16 +02:00
read qr tokens
This commit is contained in:
@@ -1247,9 +1247,9 @@ page_container %}
|
||||
this.payInvoiceData.data.request = req
|
||||
reqtype = 'lnurl'
|
||||
return
|
||||
} else if (req.indexOf('cashu:') !== 1) {
|
||||
this.receiveData.tokensBase64 = req.slice(req.indexOf('cashu:'))
|
||||
reqtype = 'cashu'
|
||||
// } else if (req.indexOf('cashu:') !== 1) {
|
||||
// this.receiveData.tokensBase64 = req.slice(req.indexOf('cashu:'))
|
||||
// reqtype = 'cashu'
|
||||
} else if (req.indexOf('W3siaWQ') !== 1) {
|
||||
// very dirty way of parsing cashu tokens
|
||||
this.receiveData.tokensBase64 = req.slice(req.indexOf('W3siaWQ'))
|
||||
|
Reference in New Issue
Block a user