Skip to content

Commit

Permalink
Remove new-window listener
Browse files Browse the repository at this point in the history
This was removed from Electron recently: electron/electron#34526
  • Loading branch information
Stanzilla committed Jan 13, 2023
1 parent b265cc3 commit ea3719d
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/background.ts
Expand Up @@ -207,11 +207,6 @@ async function createWindow() {
}
});

mainWindow?.webContents.on("new-window", (event, url) => {
event.preventDefault();
shell.openExternal(url);
});

mainWindow?.webContents.on("will-navigate", (event) => {
if (mainWindow?.webContents.getURL() !== winURL) {
event.preventDefault();
Expand Down

0 comments on commit ea3719d

Please sign in to comment.