diff options
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 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 | ||
248 | if (isDevMode) { | 250 | if (isDevMode) { |