]> git.wh0rd.org - tt-rss.git/commitdiff
feedlist_init: do not wait before calling viewfeed(-3)
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Mon, 24 Dec 2012 12:54:24 +0000 (16:54 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Mon, 24 Dec 2012 12:54:24 +0000 (16:54 +0400)
js/feedlist.js

index 9104a460865734f1b1c70e5d1d4c9aabb85b6beb..e66fcb45dd14177b36f322cdf74ab08d31b251c4 100644 (file)
@@ -210,9 +210,8 @@ function feedlist_init() {
                document.onkeydown = hotkey_handler;
                setTimeout("hotkey_prefix_timeout()", 5*1000);
 
-                if (!getActiveFeedId()) {
-                       setTimeout("viewfeed(-3)", 100);
-               }
+                if (!getActiveFeedId())
+                        viewfeed(-3);
 
                console.log("T:" +
                                getInitParam("cdm_auto_catchup") + " " + getFeedUnread(-3));