match any onion

This commit is contained in:
softsimon committed 2024-08-07 00:24:23 +02:00
1 parent cddff129b3
commit 924399df46
1 file changed
+1 -1
+1 -1
View File
@@ -210,7 +210,7 @@ export class StateService {
this.env.MINING_DASHBOARD = false;
}
if (document.location.hostname === 'mempoolhqx4isw62xs7abwphsq7ldayuidyx2v2oethdhhj6mlo2r6ad.onion') {
if (document.location.hostname.endsWith('.onion')) {
this.env.SERVICES_API = 'http://mempoolhqx4isw62xs7abwphsq7ldayuidyx2v2oethdhhj6mlo2r6ad.onion/api/v1/services';
}