force-request counters on load once if bw_limit option is enabled (because there's no timeout())
This commit is contained in:
parent
ab8daa0389
commit
03c56b041f
1 changed files with 6 additions and 1 deletions
|
@ -198,8 +198,13 @@ function feedlist_init() {
|
|||
|
||||
hideOrShowFeeds(getInitParam("hide_read_feeds") == 1);
|
||||
|
||||
// bw_limit disables timeout() so we request initial counters separately
|
||||
if (getInitParam("bw_limit") == "1") {
|
||||
request_counters(true);
|
||||
} else {
|
||||
setTimeout(timeout, 250);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function request_counters(force) {
|
||||
|
|
Loading…
Reference in a new issue