aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLibravatar Stefan Malzner <stefan@adlk.io>2019-10-02 21:39:03 +0200
committerLibravatar Stefan Malzner <stefan@adlk.io>2019-10-02 21:39:03 +0200
commita564a35bcf9bcfedd6dc7bc60ce2c115badd6985 (patch)
tree47a0d633e96dbb8e76a720d0ea98e5b0f48ea97b /src
parentfix(Service Proxies): Fix proxy setting rehydration (diff)
downloadferdium-app-a564a35bcf9bcfedd6dc7bc60ce2c115badd6985.tar.gz
ferdium-app-a564a35bcf9bcfedd6dc7bc60ce2c115badd6985.tar.zst
ferdium-app-a564a35bcf9bcfedd6dc7bc60ce2c115badd6985.zip
Use native window.open
Diffstat (limited to 'src')
-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};