+9
-1
posting_stats_page.js
+9
-1
posting_stats_page.js
···
435
435
* countFetchedDays?: boolean,
436
436
* users?: json[]
437
437
* }} [options]
438
+
* @returns {Promise<void>}
438
439
*/
439
440
440
-
updateResultsTable(posts, startTime, requestedDays, options = {}) {
441
+
async updateResultsTable(posts, startTime, requestedDays, options = {}) {
441
442
if (this.scanStartTime != startTime) {
442
443
return;
444
+
}
445
+
446
+
let now = new Date().getTime();
447
+
448
+
if (now - startTime < 100) {
449
+
// artificial UI delay in case scan finishes immediately
450
+
await new Promise(resolve => setTimeout(resolve, 100));
443
451
}
444
452
445
453
let users = {};