From 437063630c39f1f1a8d2975579253ce198036a35 Mon Sep 17 00:00:00 2001 From: SuperComboGamer Date: Fri, 12 Dec 2025 19:07:26 -0500 Subject: [PATCH] fix: add setWindowOpenHandler for external links MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Restores the handler that opens target="_blank" links in the default browser instead of trying to create a new Electron window. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- apps/app/electron/main.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/app/electron/main.js b/apps/app/electron/main.js index 33d91e71..9ae31c32 100644 --- a/apps/app/electron/main.js +++ b/apps/app/electron/main.js @@ -131,6 +131,12 @@ function createWindow() { mainWindow.on("closed", () => { mainWindow = null; }); + + // Handle external links - open in default browser + mainWindow.webContents.setWindowOpenHandler(({ url }) => { + shell.openExternal(url); + return { action: "deny" }; + }); } // App lifecycle