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);