1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-09-15 18:57:04 +00:00

Do not advance to the next item when using the 'v' shortcut on the list of starred items

This commit is contained in:
Richard Schneider 2020-01-13 14:57:31 -06:00 committed by Frédéric Guillot
parent 1a78e3a5bc
commit 476898b1d4
2 changed files with 7 additions and 4 deletions

View file

@ -297,9 +297,11 @@ function openOriginalLink(openLinkInCurrentTab) {
if (currentItemOriginalLink !== null) {
DomHelper.openNewTab(currentItemOriginalLink.getAttribute("href"));
// Move to the next item and if we are on the unread page mark this item as read.
let currentItem = document.querySelector(".current-item");
goToNextListItem();
// If we are not on the list of starred items, move to the next item
if (document.location.href != document.querySelector('a[data-page=starred]').href){
goToNextListItem();
}
markEntryAsRead(currentItem);
}
}