diff options
author | Andrew Dolgov <[email protected]> | 2017-08-12 07:51:37 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2017-08-12 07:51:37 +0300 |
commit | 03c56b041f7087d0f824276d624629cafe3cc07a (patch) | |
tree | 0493a53f21a6c04f8368a69e08633cf118f25777 /js | |
parent | ab8daa0389a860ed243a18c7a6fe37fc4c355271 (diff) |
force-request counters on load once if bw_limit option is enabled (because there's no timeout())
Diffstat (limited to 'js')
-rw-r--r-- | js/feedlist.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/js/feedlist.js b/js/feedlist.js index 46a22acd0..887d84453 100644 --- a/js/feedlist.js +++ b/js/feedlist.js @@ -198,7 +198,12 @@ function feedlist_init() { hideOrShowFeeds(getInitParam("hide_read_feeds") == 1); - setTimeout(timeout, 250); + // bw_limit disables timeout() so we request initial counters separately + if (getInitParam("bw_limit") == "1") { + request_counters(true); + } else { + setTimeout(timeout, 250); + } } |