summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rwxr-xr-xjs/Headlines.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/js/Headlines.js b/js/Headlines.js
index 19ab69d16..783067f30 100755
--- a/js/Headlines.js
+++ b/js/Headlines.js
@@ -4,6 +4,7 @@ define(["dojo/_base/declare"], function (declare) {
Headlines = {
vgroup_last_feed: undefined,
_headlines_scroll_timeout: 0,
+ _observer_counters_timeout: 0,
headlines: [],
current_first_id: 0,
row_observer: new MutationObserver((mutations) => {
@@ -141,7 +142,9 @@ define(["dojo/_base/declare"], function (declare) {
if (promises.length > 0)
Promise.all([promises]).then(() => {
- setTimeout(() => {
+ window.clearTimeout(this._observer_counters_timeout);
+
+ this._observer_counters_timeout = setTimeout(() => {
Feeds.requestCounters(true);
}, 1000);
});