diff options
author | André Oliveira <37463445+SpecialAro@users.noreply.github.com> | 2023-09-04 00:02:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-04 00:02:22 +0100 |
commit | 970738c953865b7346f5f85c576be2af2cdd7f2c (patch) | |
tree | 9a05d25a6d0128b8197f0f38a2a013d1d842cebc /src/electron | |
parent | Upgrade npm modules (#1343) (diff) | |
download | ferdium-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.ts | 3 |
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 @@ | |||
1 | import { BrowserWindow } from 'electron'; | 1 | import { BrowserWindow } from 'electron'; |
2 | import { protocolClient } from '../environment-remote'; | ||
2 | 3 | ||
3 | export default function handleDeepLink( | 4 | export 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'. |