From 03c56b041f7087d0f824276d624629cafe3cc07a Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 12 Aug 2017 07:51:37 +0300 Subject: [PATCH] force-request counters on load once if bw_limit option is enabled (because there's no timeout()) --- js/feedlist.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/js/feedlist.js b/js/feedlist.js index 46a22acd..887d8445 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); + } } -- 2.39.5