Explicitly declare file extensions for stickers and log event fetching progress

This commit is contained in:
Jaiwanth 2021-06-25 15:19:17 +05:30
parent 593f14beae
commit 4af8ec4d40
4 changed files with 9 additions and 7 deletions

View file

@ -77,8 +77,8 @@ ${json}
const res = await this.getRequiredEvents();
const fetchEnd = performance.now();
console.log(`Fetched ${res.length} events in ${(fetchEnd - fetchStart)/1000} s`);
console.info("Creating Output...");
console.log(`Fetched ${res.length} events in ${(fetchEnd - fetchStart)/1000}s`);
console.info("Creating output...");
const text = await this.createOutput(res);
@ -91,7 +91,8 @@ ${json}
}
const exportEnd = performance.now();
console.info(`Export Successful! Exported ${res.length} events in ${(exportEnd - fetchStart)/1000} seconds`);
console.info(`Export successful!`)
console.log(`Exported ${res.length} events in ${(exportEnd - fetchStart)/1000} seconds`);
window.removeEventListener("beforeunload", this.onBeforeUnload);
window.removeEventListener("onunload", this.abortExport);
}