aboutsummaryrefslogtreecommitdiffstats
path: root/src/electron
diff options
context:
space:
mode:
authorLibravatar André Oliveira <37463445+SpecialAro@users.noreply.github.com>2023-09-04 00:02:22 +0100
committerLibravatar GitHub <noreply@github.com>2023-09-04 00:02:22 +0100
commit970738c953865b7346f5f85c576be2af2cdd7f2c (patch)
tree9a05d25a6d0128b8197f0f38a2a013d1d842cebc /src/electron
parentUpgrade npm modules (#1343) (diff)
downloadferdium-app-970738c953865b7346f5f85c576be2af2cdd7f2c.tar.gz
ferdium-app-970738c953865b7346f5f85c576be2af2cdd7f2c.tar.zst
ferdium-app-970738c953865b7346f5f85c576be2af2cdd7f2c.zip
feat: add deeplink to service (#1344)
add deeplink to service
Diffstat (limited to 'src/electron')
-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'.