You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-25 17:02:04 +03:00
format
This commit is contained in:
@ -91,13 +91,14 @@ export default class PlainTextExporter extends Exporter {
|
||||
public async export() {
|
||||
console.info("Starting export process...");
|
||||
console.info("Fetching events...");
|
||||
|
||||
const fetchStart = performance.now();
|
||||
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.info("Creating output...");
|
||||
const text = await this.createOutput(res);
|
||||
|
||||
if (this.files.length) {
|
||||
@ -109,7 +110,10 @@ export default class PlainTextExporter extends Exporter {
|
||||
}
|
||||
|
||||
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("onunload", this.abortExport);
|
||||
window.removeEventListener("beforeunload", this.onBeforeUnload);
|
||||
}
|
||||
|
Reference in New Issue
Block a user