From 924399df4600581aa6cd2bf5fb65b23631d65735 Mon Sep 17 00:00:00 2001 From: softsimon Date: Wed, 7 Aug 2024 00:24:23 +0200 Subject: [PATCH] match any onion --- frontend/src/app/services/state.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/app/services/state.service.ts b/frontend/src/app/services/state.service.ts index 3478809bd..365c1daa2 100644 --- a/frontend/src/app/services/state.service.ts +++ b/frontend/src/app/services/state.service.ts @@ -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'; }