diff --git a/index.html b/index.html index 829a9d5..4818aa9 100644 --- a/index.html +++ b/index.html @@ -100,7 +100,7 @@ __ __ _____ __ __ _____ - +

diff --git a/main.js b/main.js index 57c62cc..84af8a1 100644 --- a/main.js +++ b/main.js @@ -271,7 +271,11 @@ let app = createApp({ } }, mounted() { + // do this to get a connection to the backend so we don't have to wait for DNS later + if (document.location.hostname.endsWith(".onion")){ + this.backend = "http://api.xmr4smsoncunkfgfjr6xmxl57afsmuu6rg2bwuysbgg4wdtoawamwxad.onion/" + } fetch(this.backend + 'ping') this.getThreads(true) setInterval(()=>{ @@ -280,9 +284,6 @@ let app = createApp({ setInterval(()=>{ this.getCredits() }, 30000) - if (document.location.hostname.endsWith(".onion")){ - this.backend = "http://api.xmr4smsoncunkfgfjr6xmxl57afsmuu6rg2bwuysbgg4wdtoawamwxad.onion/" - } } })