Fix unnecessary navigation interception

This commit is contained in:
Gregory Schier committed 2019-05-08 16:32:28 -04:00
1 parent 5ac53aa3b1
commit 46483fd23e
1 file changed
+5
@@ -82,6 +82,11 @@ export function createWindow() {
// Open generic links (<a .../>) in default browser
mainWindow.webContents.on('will-navigate', (e, url) => {
if (url === appUrl) {
return;
}
console.log('[app] Navigate to ' + url);
e.preventDefault();
electron.shell.openExternal(url);
});