Browse Source

Revert "Remove will-navigate as we expect it to be broken like pre-8.0.2"

This reverts commit fb656ce8bd.
release-v1.5.12
Michael Telatynski 2 years ago committed by Travis Ralston
parent
commit
706834939f
  1. 3
      electron_app/src/webcontents-handler.js

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

Loading…
Cancel
Save