diff --git a/main.js b/main.js index bb6fd84238..0c7e91a5f8 100644 --- a/main.js +++ b/main.js @@ -117,7 +117,10 @@ function createWindow () { if (protocol === 'http:' || protocol === 'https:') { shell.openExternal(url) } - }) + }); + mainWindow.webContents.on('will-navigate', function(e) { + e.preventDefault(); + }); // Emitted when the window is about to be closed. mainWindow.on('close', function (e) {