From c3b792ebeb45c16b4ae4e52efeb6bfb58519bdd9 Mon Sep 17 00:00:00 2001 From: Arc <33088785+arcbtc@users.noreply.github.com> Date: Wed, 12 Feb 2020 15:12:46 +0000 Subject: [PATCH] Update index.html --- .../withdraw/templates/withdraw/index.html | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/lnbits/extensions/withdraw/templates/withdraw/index.html b/lnbits/extensions/withdraw/templates/withdraw/index.html index c5ddc3e..66b5582 100644 --- a/lnbits/extensions/withdraw/templates/withdraw/index.html +++ b/lnbits/extensions/withdraw/templates/withdraw/index.html @@ -72,6 +72,8 @@

+
+
@@ -213,7 +215,18 @@ const user_fau = window.user_fau console.log(user_fau) +function erralert(){ + + var myUrlPattern = '.onion'; + if (window.location.hostname.indexOf("168") > 3 || location.hostname === "localhost" || location.hostname === "127.0.0.1" || n > 2 || window.location.hostname.indexOf(myUrlPattern) >= 0){ + document.getElementById("erralert").innerHTML = "
"+ + "

*Running LNURLw locally will likely need an SSH tunnel, or DNS magic."+ + "

"; + } +} +erralert(); + function drawChart(user_fau) { var transactionsHTML = ''