Update index.html
This commit is contained in:
parent
dab238e182
commit
c3b792ebeb
|
@ -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 = ''
|
||||
|
|
Loading…
Reference in New Issue
Block a user