From 8f79232d2b992138e89653e6a95c16684bc51a9c Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Sun, 1 Feb 2026 02:08:33 -0500 Subject: [PATCH] Tray: Fix Nav --- src/main/about.html | 8 -------- src/main/trayMenu.ts | 10 ++++++++++ 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/src/main/about.html b/src/main/about.html index 95434b5f3..7f60bfa32 100644 --- a/src/main/about.html +++ b/src/main/about.html @@ -183,12 +183,4 @@ } walk(document.body); - - document.addEventListener("click", (e) => { - const a = e.target.closest("a[href]"); - if (!a) return; - - e.preventDefault(); - window.open(a.href); - }); \ No newline at end of file diff --git a/src/main/trayMenu.ts b/src/main/trayMenu.ts index 1b87727a4..d5c266490 100644 --- a/src/main/trayMenu.ts +++ b/src/main/trayMenu.ts @@ -71,6 +71,16 @@ function openAboutWindow() { width }); + aboutWindow.webContents.setWindowOpenHandler(({ url }) => { + shell.openExternal(url); + return { action: "deny" }; + }); + + aboutWindow.webContents.on("will-navigate", (e, url) => { + e.preventDefault(); + shell.openExternal(url); + }); + const aboutParams = aboutHtml .replaceAll("{{VERSION}}", VERSION) .replaceAll("{{GIT_HASH}}", gitHashShort);