From 2b48f08884eb01c5d21b8030d0c6cb1b41cfd073 Mon Sep 17 00:00:00 2001 From: Arc <33088785+arcbtc@users.noreply.github.com> Date: Thu, 16 Jan 2020 20:51:36 +0000 Subject: [PATCH] Update app.js --- lnbits/static/app.js | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/lnbits/static/app.js b/lnbits/static/app.js index 540852dff..692732a4f 100644 --- a/lnbits/static/app.js +++ b/lnbits/static/app.js @@ -160,7 +160,36 @@ function cancelsend() { window.location.href = 'wallet?wal=' + wallet.id + '&usr=' + user } +function processing() { + document.getElementById('processing').innerHTML = + "" + + + window.top.location.href = "lnurlwallet?lightning=" + getQueryVariable("lightning"); +} + + +function getQueryVariable(variable) +{ + var query = window.location.search.substring(1); + var vars = query.split("&"); + for (var i=0;i

"+ + '

Processing...

<


/div> '; + postAjax( '/v1/channels/transactions', JSON.stringify({payment_request: invoice}),