diff options
author | 2019-10-09 10:12:20 +0200 | |
---|---|---|
committer | 2019-10-09 10:12:20 +0200 | |
commit | 6a1676cb9f4765185d388656f5350ca664a42bef (patch) | |
tree | b43a0d2022b1644a047abfd1e90f0e89a99c652a /src/webview/recipe.js | |
parent | Bump version to 5.4.0-beta.3 (diff) | |
download | ferdium-app-6a1676cb9f4765185d388656f5350ca664a42bef.tar.gz ferdium-app-6a1676cb9f4765185d388656f5350ca664a42bef.tar.zst ferdium-app-6a1676cb9f4765185d388656f5350ca664a42bef.zip |
only use window.open when url exists
Diffstat (limited to 'src/webview/recipe.js')
-rw-r--r-- | src/webview/recipe.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/webview/recipe.js b/src/webview/recipe.js index e3e13b726..027d22c0a 100644 --- a/src/webview/recipe.js +++ b/src/webview/recipe.js | |||
@@ -207,7 +207,9 @@ window.open = (url, frameName, features) => { | |||
207 | return ipcRenderer.sendToHost('new-window', url); | 207 | return ipcRenderer.sendToHost('new-window', url); |
208 | } | 208 | } |
209 | 209 | ||
210 | return originalWindowOpen(url, frameName, features); | 210 | if (url) { |
211 | return originalWindowOpen(url, frameName, features); | ||
212 | } | ||
211 | }; | 213 | }; |
212 | 214 | ||
213 | if (isDevMode) { | 215 | if (isDevMode) { |