mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-05-19 13:54:44 -04:00
fix: space key opens empty tab (#4581)
* Update main.js * Update p/scripts/main.js Co-authored-by: Frans de Jonge <fransdejonge@gmail.com> * fix Co-authored-by: Frans de Jonge <fransdejonge@gmail.com>
This commit is contained in:
@@ -1001,12 +1001,14 @@ function init_shortcuts() {
|
||||
if (context.auto_mark_site) {
|
||||
mark_read(document.querySelector('.flux.current'), true, false);
|
||||
}
|
||||
|
||||
const link_go_website = document.querySelector('.flux.current a.go_website');
|
||||
const newWindow = window.open();
|
||||
if (newWindow) {
|
||||
if (link_go_website && newWindow) {
|
||||
newWindow.opener = null;
|
||||
newWindow.location = document.querySelector('.flux.current a.go_website').href;
|
||||
newWindow.location = link_go_website.href;
|
||||
ev.preventDefault();
|
||||
}
|
||||
ev.preventDefault();
|
||||
return;
|
||||
}
|
||||
if (k === s.skip_next_entry) { next_entry(true); ev.preventDefault(); return; }
|
||||
|
||||
Reference in New Issue
Block a user