From b840e01c5c0bcbd4a9f56b6461c0daa6fe931b9c Mon Sep 17 00:00:00 2001
From: Arc <33088785+arcbtc@users.noreply.github.com>
Date: Wed, 29 Jan 2020 19:17:01 +0000
Subject: [PATCH] Fixed chrome issues
---
lnbits/templates/withdraw.html | 100 +++++++++++++++++++++++++--------
1 file changed, 77 insertions(+), 23 deletions(-)
diff --git a/lnbits/templates/withdraw.html b/lnbits/templates/withdraw.html
index f9bc71404..1949c1cc7 100644
--- a/lnbits/templates/withdraw.html
+++ b/lnbits/templates/withdraw.html
@@ -104,7 +104,7 @@
-
-
+
@@ -265,13 +265,15 @@ if (user_fau.length) {
//draws withdraw QR code
-function drawwithdraw(data) {
+function drawwithdraw() {
+
+
+ walname = document.getElementById("fauselect").value
- walname = document.getElementById(data).value
thewithdraw = walname.split("-");
console.log(window.location.hostname + "-" + thewithdraw[1])
- getAjax('/v1/lnurlencode/'+ window.location.hostname + "/" + thewithdraw[1], "filla", function(datab) {
+ getAjax('/v1/lnurlencode/'+ window.location.hostname + "/" + thewithdraw[1], "filla", function(datab) {
if (JSON.parse(datab).STATUS == 'TRUE') {
console.log(JSON.parse(datab).STATUS)
lnurlfau = (JSON.parse(datab).LNURL)
@@ -285,12 +287,21 @@ function drawwithdraw(data) {
colorLight: '#ffffff',
correctLevel: QRCode.CorrectLevel.M
})
+
+ if (thewithdraw[2] > 0){
document.getElementById('qrcodetxt').innerHTML = lnurlfau
+
"