aboutsummaryrefslogtreecommitdiff
path: root/p
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2019-03-27 00:08:59 +0100
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2019-03-27 00:08:59 +0100
commit09362f15ee707280efed1fcdda1485d050fe09fa (patch)
treec6023aeb4f5a266e6c76a321211a73d7e6ef61a2 /p
parent580123fdb088223865d5a1326e54907018cf373a (diff)
Minor code simplification
https://github.com/FreshRSS/FreshRSS/pull/2300
Diffstat (limited to 'p')
-rw-r--r--p/scripts/main.js8
1 files changed, 2 insertions, 6 deletions
diff --git a/p/scripts/main.js b/p/scripts/main.js
index 1b417ecb5..f59976b39 100644
--- a/p/scripts/main.js
+++ b/p/scripts/main.js
@@ -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() {