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 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) { |