From a2a10a8e6e2321a0367a9327735c7d8c0d209a8f Mon Sep 17 00:00:00 2001 From: kisfenyo Date: Wed, 14 Jan 2026 21:02:12 +0100 Subject: [PATCH] modified so links open in a new tab --- glance-system/glance-kisfenyo.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/glance-system/glance-kisfenyo.yaml b/glance-system/glance-kisfenyo.yaml index d75d55a..767e692 100644 --- a/glance-system/glance-kisfenyo.yaml +++ b/glance-system/glance-kisfenyo.yaml @@ -254,18 +254,18 @@ data: .sort((a,b) => b.s - a.s) .slice(0, MAX_RESULTS); - openResult(resultsNow, activeIndex, e.ctrlKey || e.metaKey); + openResult(resultsNow, activeIndex); } }; overlay.onclick = (e) => { if (e.target === overlay) closeOverlay(); }; } - function openResult(results, i, newTab) { + function openResult(results, i) { const r = results[i]; if (!r) return; closeOverlay(); - window.open(r.url, newTab ? '_blank' : '_self'); + window.open(r.url, '_blank', 'noopener,noreferrer'); } function closeOverlay() {