diff --git a/electron/src/index.ts b/electron/src/index.ts index 5962a2db..e4d67a8f 100644 --- a/electron/src/index.ts +++ b/electron/src/index.ts @@ -65,6 +65,12 @@ function createWindow() { ev.preventDefault(); openExternalUrl(url); }); + + // Also redirect window.open + win.webContents.setWindowOpenHandler(({ url }) => { + openExternalUrl(url); + return { action: "deny" }; + }); } function openExternalUrl(urlString: string) {