aboutsummaryrefslogtreecommitdiff
path: root/p/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'p/scripts')
-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() {