aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/webview/recipe.js12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/webview/recipe.js b/src/webview/recipe.js
index c223b73de..7be307f05 100644
--- a/src/webview/recipe.js
+++ b/src/webview/recipe.js
@@ -169,15 +169,3 @@ class RecipeController {
169/* eslint-disable no-new */ 169/* eslint-disable no-new */
170new RecipeController(); 170new RecipeController();
171/* eslint-enable no-new */ 171/* eslint-enable no-new */
172
173// Patching window.open
174const originalWindowOpen = window.open;
175
176window.open = (url, frameName, features) => {
177 // We need to differentiate if the link should be opened in a popup or in the systems default browser
178 if (!frameName && !features) {
179 return ipcRenderer.sendToHost('new-window', url);
180 }
181
182 return originalWindowOpen(url, frameName, features);
183};