use onion for api when served over onion
This commit is contained in:
parent
9c5349d1a8
commit
26b6b68165
@ -106,7 +106,7 @@ __ __ _____ __ __ _____
|
|||||||
<br><br>
|
<br><br>
|
||||||
<div>
|
<div>
|
||||||
<a href="mailto:support@voidnet.tech?subject=MoneroSMS Support"><button>Get Support/Report Bug</button></a>
|
<a href="mailto:support@voidnet.tech?subject=MoneroSMS Support"><button>Get Support/Report Bug</button></a>
|
||||||
<p>This webUI is in alpha, please be patient and let us know of any problems or suggestions you have.</p>
|
<p v-if="userID">This webUI is in alpha, please be patient and let us know of any problems or suggestions you have.</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
3
main.js
3
main.js
@ -280,6 +280,9 @@ let app = createApp({
|
|||||||
setInterval(()=>{
|
setInterval(()=>{
|
||||||
this.getCredits()
|
this.getCredits()
|
||||||
}, 30000)
|
}, 30000)
|
||||||
|
if (document.location.hostname.endsWith(".onion")){
|
||||||
|
this.backend = "http://api.xmr4smsoncunkfgfjr6xmxl57afsmuu6rg2bwuysbgg4wdtoawamwxad.onion/"
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user