From 706834939f51a901e50d26eb16b59a3ff021ee87 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Mon, 2 Mar 2020 11:09:06 +0000 Subject: [PATCH] Revert "Remove will-navigate as we expect it to be broken like pre-8.0.2" This reverts commit fb656ce8bdcb0cfe377ad80d30b7d6a3177b52e8. --- electron_app/src/webcontents-handler.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/electron_app/src/webcontents-handler.js b/electron_app/src/webcontents-handler.js index f0aaf4a4f..bbfb2e7da 100644 --- a/electron_app/src/webcontents-handler.js +++ b/electron_app/src/webcontents-handler.js @@ -174,8 +174,7 @@ function onEditableContextMenu(ev, params) { module.exports = (webContents) => { webContents.on('new-window', onWindowOrNavigate); - // XXX: https://github.com/vector-im/riot-web/issues/8247 - // webContents.on('will-navigate', onWindowOrNavigate); + webContents.on('will-navigate', onWindowOrNavigate); webContents.on('context-menu', function(ev, params) { if (params.linkURL || params.srcURL) {