From 3dc997d43289b6b05bf4d729d83b5da57045fc6c Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Sun, 8 Dec 2024 23:07:27 +0100 Subject: windows.open noopener (#7077) fix https://github.com/FreshRSS/FreshRSS/issues/6862 Rework https://github.com/FreshRSS/FreshRSS/pull/2506 --- p/scripts/main.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/p/scripts/main.js b/p/scripts/main.js index f74e36553..0093b3330 100644 --- a/p/scripts/main.js +++ b/p/scripts/main.js @@ -1099,10 +1099,8 @@ function init_shortcuts() { const link_go_website = document.querySelector('.flux.current a.go_website'); if (link_go_website) { - const newWindow = window.open(); + const newWindow = window.open(link_go_website.href, '_blank', 'noopener'); if (newWindow) { - newWindow.opener = null; - newWindow.location = link_go_website.href; ev.preventDefault(); } } -- cgit v1.2.3