Update index.html

This commit is contained in:
Arc 2020-02-12 15:12:46 +00:00 committed by GitHub
parent dab238e182
commit c3b792ebeb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -72,6 +72,8 @@
</ol>
<br /><br />
</section>
<div class='row'><div class='col-md-6'><div id="erralert"></div></div></div>
<!-- Main content -->
<section class="content">
@ -213,6 +215,17 @@
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 = "<div class='alert alert-danger alert-dismissable'>"+
"<h4>*Running LNURLw locally will likely need an SSH tunnel, or DNS magic."+
"</h4></div>";
}
}
erralert();
function drawChart(user_fau) {
var transactionsHTML = ''