summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2017-08-12 07:51:37 +0300
committerAndrew Dolgov <[email protected]>2017-08-12 07:51:37 +0300
commit03c56b041f7087d0f824276d624629cafe3cc07a (patch)
tree0493a53f21a6c04f8368a69e08633cf118f25777 /js
parentab8daa0389a860ed243a18c7a6fe37fc4c355271 (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.js7
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);
+ }
}