summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2018-12-16 12:41:27 +0300
committerAndrew Dolgov <[email protected]>2018-12-16 12:41:27 +0300
commit54ce930b8d97cff9443ee28a3165c90e67689187 (patch)
tree2e12ada777e073e790c1365545530498a2c86c5d /js
parentb66deb3240d0dba870c0edcd83a231db23350540 (diff)
delay counters request on promise completion a bit
Diffstat (limited to 'js')
-rw-r--r--js/AppBase.js3
-rwxr-xr-xjs/Headlines.js4
2 files changed, 4 insertions, 3 deletions
diff --git a/js/AppBase.js b/js/AppBase.js
index c7e221094..bb2c3cbcc 100644
--- a/js/AppBase.js
+++ b/js/AppBase.js
@@ -209,8 +209,7 @@ define(["dojo/_base/declare"], function (declare) {
const seq = reply['seq'];
if (seq && this.get_seq() != seq) {
- console.log("[handleRpcJson] sequence mismatch: " + seq +
- " (want: " + this.get_seq() + ")");
+ console.log("[handleRpcJson] sequence mismatch: ", seq, '!=', this.get_seq());
return true;
}
diff --git a/js/Headlines.js b/js/Headlines.js
index bbf48738b..19ab69d16 100755
--- a/js/Headlines.js
+++ b/js/Headlines.js
@@ -141,7 +141,9 @@ define(["dojo/_base/declare"], function (declare) {
if (promises.length > 0)
Promise.all([promises]).then(() => {
- Feeds.requestCounters(true);
+ setTimeout(() => {
+ Feeds.requestCounters(true);
+ }, 1000);
});
},