diff options
author | 2017-12-22 10:49:35 +0100 | |
---|---|---|
committer | 2017-12-22 10:49:35 +0100 | |
commit | 5881c2676dd6acd44c69083cc250b0bad241d45f (patch) | |
tree | 8f6100fbb15babb634dc8f92b0cba87e47e7629b | |
parent | Merge pull request #466 from meetfranz/feature/macOS-copy-paste (diff) | |
download | ferdium-app-5881c2676dd6acd44c69083cc250b0bad241d45f.tar.gz ferdium-app-5881c2676dd6acd44c69083cc250b0bad241d45f.tar.zst ferdium-app-5881c2676dd6acd44c69083cc250b0bad241d45f.zip |
Don't send any deep linking events when URL is empty
-rw-r--r-- | src/electron/deepLinking.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/electron/deepLinking.js b/src/electron/deepLinking.js index 16e68b914..ef23fd3c5 100644 --- a/src/electron/deepLinking.js +++ b/src/electron/deepLinking.js | |||
@@ -1,5 +1,7 @@ | |||
1 | export default function handleDeepLink(window, rawUrl) { | 1 | export default function handleDeepLink(window, rawUrl) { |
2 | const url = rawUrl.replace('franz://', ''); | 2 | const url = rawUrl.replace('franz://', ''); |
3 | 3 | ||
4 | if (!url) return; | ||
5 | |||
4 | window.webContents.send('navigateFromDeepLink', { url }); | 6 | window.webContents.send('navigateFromDeepLink', { url }); |
5 | } | 7 | } |