فهرست منبع

Minor code simplification

https://github.com/FreshRSS/FreshRSS/pull/2300
Alexandre Alapetite 7 سال پیش
والد
کامیت
09362f15ee
1فایلهای تغییر یافته به همراه2 افزوده شده و 6 حذف شده
  1. 2 6
      p/scripts/main.js

+ 2 - 6
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() {