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 = ''