mirror of
https://github.com/lnbits/lnbits.git
synced 2025-03-28 18:52:00 +01:00
Update index.html
This commit is contained in:
parent
dab238e182
commit
c3b792ebeb
@ -72,6 +72,8 @@
|
|||||||
</ol>
|
</ol>
|
||||||
<br /><br />
|
<br /><br />
|
||||||
</section>
|
</section>
|
||||||
|
<div class='row'><div class='col-md-6'><div id="erralert"></div></div></div>
|
||||||
|
|
||||||
|
|
||||||
<!-- Main content -->
|
<!-- Main content -->
|
||||||
<section class="content">
|
<section class="content">
|
||||||
@ -213,7 +215,18 @@
|
|||||||
const user_fau = window.user_fau
|
const user_fau = window.user_fau
|
||||||
console.log(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) {
|
function drawChart(user_fau) {
|
||||||
var transactionsHTML = ''
|
var transactionsHTML = ''
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user