From 7c90e8ae0610f45d685cbd6b3afacb6059e98a0c Mon Sep 17 00:00:00 2001 From: softsimon Date: Tue, 6 Aug 2024 23:27:59 +0200 Subject: [PATCH] fix services onion url --- frontend/src/app/services/state.service.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frontend/src/app/services/state.service.ts b/frontend/src/app/services/state.service.ts index 927c62198..3478809bd 100644 --- a/frontend/src/app/services/state.service.ts +++ b/frontend/src/app/services/state.service.ts @@ -210,6 +210,10 @@ export class StateService { this.env.MINING_DASHBOARD = false; } + if (document.location.hostname === 'mempoolhqx4isw62xs7abwphsq7ldayuidyx2v2oethdhhj6mlo2r6ad.onion') { + this.env.SERVICES_API = 'http://mempoolhqx4isw62xs7abwphsq7ldayuidyx2v2oethdhhj6mlo2r6ad.onion/api/v1/services'; + } + if (this.isBrowser) { this.setNetworkBasedonUrl(window.location.pathname); this.setLightningBasedonUrl(window.location.pathname);