Minor code simplification

https://github.com/FreshRSS/FreshRSS/pull/2300
This commit is contained in:
Alexandre Alapetite committed 2019-03-27 00:08:59 +01:00
1 parent 580123fdb0
commit 09362f15ee
1 file changed
+2 -6
+2 -6
View File
@@ -462,9 +462,7 @@ function next_feed() {
function first_feed() {
const a = document.querySelector('#aside_feed .category.active .feed:not([data-unread="0"]) a.item-title');
if (a) {
delayedClick(a);
}
delayedClick(a);
}
function last_feed() {
@@ -504,9 +502,7 @@ function next_category() {
function first_category() {
const a = document.querySelector('#aside_feed .category:not([data-unread="0"]) a.title');
if (a) {
delayedClick(a);
}
delayedClick(a);
}
function last_category() {