mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-10-23 11:38:34 -04:00
windows.open noopener (#7077)
fix https://github.com/FreshRSS/FreshRSS/issues/6862 Rework https://github.com/FreshRSS/FreshRSS/pull/2506
This commit is contained in:
1 parent
5ba5271e48
commit
3dc997d432
1 file changed
+1
-3
+1
-3
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user