aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLibravatar Stefan Malzner <stefan@adlk.io>2019-10-09 10:12:20 +0200
committerLibravatar Stefan Malzner <stefan@adlk.io>2019-10-09 10:12:20 +0200
commit6a1676cb9f4765185d388656f5350ca664a42bef (patch)
treeb43a0d2022b1644a047abfd1e90f0e89a99c652a /src
parentBump version to 5.4.0-beta.3 (diff)
downloadferdium-app-6a1676cb9f4765185d388656f5350ca664a42bef.tar.gz
ferdium-app-6a1676cb9f4765185d388656f5350ca664a42bef.tar.zst
ferdium-app-6a1676cb9f4765185d388656f5350ca664a42bef.zip
only use window.open when url exists
Diffstat (limited to 'src')
-rw-r--r--src/webview/recipe.js4
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
213if (isDevMode) { 215if (isDevMode) {