expose some meta data on a log export to show before submitting

This commit is contained in:
Bruno Windels 2021-02-12 16:08:28 +01:00
parent c0a03858eb
commit 89139bba30

View file

@ -163,6 +163,24 @@ class IDBLogExport {
this._platform = platform;
}
get minTimestamp() {
if (!this._items.length) {
return 0;
}
return this._items[0].start;
}
get maxTimestamp() {
if (!this._items.length) {
return 0;
}
return this._items[this._items.length - 1].end;
}
get count() {
return this._items.length;
}
/**
* @return {Promise}
*/