From a564a35bcf9bcfedd6dc7bc60ce2c115badd6985 Mon Sep 17 00:00:00 2001 From: Stefan Malzner Date: Wed, 2 Oct 2019 21:39:03 +0200 Subject: Use native window.open --- src/webview/recipe.js | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'src/webview') 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 { /* eslint-disable no-new */ new RecipeController(); /* eslint-enable no-new */ - -// Patching window.open -const originalWindowOpen = window.open; - -window.open = (url, frameName, features) => { - // We need to differentiate if the link should be opened in a popup or in the systems default browser - if (!frameName && !features) { - return ipcRenderer.sendToHost('new-window', url); - } - - return originalWindowOpen(url, frameName, features); -}; -- cgit v1.2.3-70-g09d2