mirror of
https://github.com/Kong/insomnia.git
synced 2026-04-21 14:47:46 -04:00
Fix unnecessary navigation interception
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user