aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2024-12-08 23:07:27 +0100
committerGravatar GitHub <noreply@github.com> 2024-12-08 23:07:27 +0100
commit3dc997d43289b6b05bf4d729d83b5da57045fc6c (patch)
tree0ec038da31f74e514c60d57be49360656e0ad888
parent5ba5271e48e1527f9188e38c0a113f6431d36ebd (diff)
windows.open noopener (#7077)
fix https://github.com/FreshRSS/FreshRSS/issues/6862 Rework https://github.com/FreshRSS/FreshRSS/pull/2506
-rw-r--r--p/scripts/main.js4
1 files changed, 1 insertions, 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();
}
}