aboutsummaryrefslogtreecommitdiffstats
path: root/src/webview/recipe.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/webview/recipe.js')
-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 ddfd0e139..2bf8f757a 100644
--- a/src/webview/recipe.js
+++ b/src/webview/recipe.js
@@ -242,7 +242,9 @@ window.open = (url, frameName, features) => {
242 return ipcRenderer.sendToHost('new-window', url); 242 return ipcRenderer.sendToHost('new-window', url);
243 } 243 }
244 244
245 return originalWindowOpen(url, frameName, features); 245 if (url) {
246 return originalWindowOpen(url, frameName, features);
247 }
246}; 248};
247 249
248if (isDevMode) { 250if (isDevMode) {