From 87e76389b677035395d0c5b05204336d78aba445 Mon Sep 17 00:00:00 2001 From: Arc <33088785+arcbtc@users.noreply.github.com> Date: Tue, 21 Jan 2020 11:06:22 +0000 Subject: [PATCH] QR read check / error report --- lnbits/static/app.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lnbits/static/app.js b/lnbits/static/app.js index f5973d5da..56a896d4c 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 = + "