aboutsummaryrefslogtreecommitdiffstats
path: root/src/electron/deepLinking.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/electron/deepLinking.ts')
-rw-r--r--src/electron/deepLinking.ts3
1 files changed, 2 insertions, 1 deletions
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 @@
1import { BrowserWindow } from 'electron'; 1import { BrowserWindow } from 'electron';
2import { protocolClient } from '../environment-remote';
2 3
3export default function handleDeepLink( 4export default function handleDeepLink(
4 window: BrowserWindow, 5 window: BrowserWindow,
@@ -8,7 +9,7 @@ export default function handleDeepLink(
8 return; 9 return;
9 } 10 }
10 11
11 const url = rawUrl.replace('ferdium://', ''); 12 const url = rawUrl.replace(`${protocolClient}://`, '');
12 13
13 // The next line is a workaround after this 71c5237 [chore: Mobx & React-Router upgrade (#406)]. 14 // The next line is a workaround after this 71c5237 [chore: Mobx & React-Router upgrade (#406)].
14 // For some reason, the app won't start until because it's trying to route to './build'. 15 // For some reason, the app won't start until because it's trying to route to './build'.