diff --git a/lnbits/static/app.js b/lnbits/static/app.js index f5973d5d..56a896d4 100644 --- a/lnbits/static/app.js +++ b/lnbits/static/app.js @@ -260,6 +260,16 @@ function scanQRsend() { outputData.innerText = JSON.stringify(code.data) theinvoice = decode(code.data) outmemo = theinvoice.data.tags[1].value + if (outmemo.split(":")[0] == "lightning") { + outmemo = outmemo.split(":")[1]; + } + if (outmemo.substring(0, 4).toUpperCase() == "LNBC"){ + document.getElementById('sendfunds2').innerHTML = + "
" + + "

Not a lightning invoice

" + + "" + + '

' + } outamount = Number(theinvoice.human_readable_part.amount) / 1000 if (outamount > Number(wallet.balance)) { document.getElementById('sendfunds2').innerHTML =