diff options
| author | 2019-03-27 00:08:59 +0100 | |
|---|---|---|
| committer | 2019-03-27 00:08:59 +0100 | |
| commit | 09362f15ee707280efed1fcdda1485d050fe09fa (patch) | |
| tree | c6023aeb4f5a266e6c76a321211a73d7e6ef61a2 /p/scripts | |
| parent | 580123fdb088223865d5a1326e54907018cf373a (diff) | |
Minor code simplification
https://github.com/FreshRSS/FreshRSS/pull/2300
Diffstat (limited to 'p/scripts')
| -rw-r--r-- | p/scripts/main.js | 8 |
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() { |
