From 970738c953865b7346f5f85c576be2af2cdd7f2c Mon Sep 17 00:00:00 2001 From: André Oliveira <37463445+SpecialAro@users.noreply.github.com> Date: Mon, 4 Sep 2023 00:02:22 +0100 Subject: feat: add deeplink to service (#1344) add deeplink to service --- src/electron/deepLinking.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/electron/deepLinking.ts') diff --git a/src/electron/deepLinking.ts b/src/electron/deepLinking.ts index 104aa2d83..14cb8e5b1 100644 --- a/src/electron/deepLinking.ts +++ b/src/electron/deepLinking.ts @@ -1,4 +1,5 @@ import { BrowserWindow } from 'electron'; +import { protocolClient } from '../environment-remote'; export default function handleDeepLink( window: BrowserWindow, @@ -8,7 +9,7 @@ export default function handleDeepLink( return; } - const url = rawUrl.replace('ferdium://', ''); + const url = rawUrl.replace(`${protocolClient}://`, ''); // The next line is a workaround after this 71c5237 [chore: Mobx & React-Router upgrade (#406)]. // For some reason, the app won't start until because it's trying to route to './build'. -- cgit v1.2.3-70-g09d2