From 51c827d0ddec33e74f99fe006bf399a5b42cbc0c Mon Sep 17 00:00:00 2001 From: Evangelos Skopelitis Date: Mon, 29 Apr 2024 14:48:39 -0400 Subject: [PATCH] app: Fix external url opening in app This fix prevents external URLs from being opened within the Headlamp app. Fixes: #1917 Signed-off-by: Evangelos Skopelitis --- app/electron/main.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/app/electron/main.ts b/app/electron/main.ts index 777fc16735..23acb54d30 100644 --- a/app/electron/main.ts +++ b/app/electron/main.ts @@ -574,6 +574,7 @@ function startElecron() { if (url.startsWith(startUrl)) { return; } + event.preventDefault(); shell.openExternal(url); });