forked from mystiq/hydrogen-web
add future todo note
This commit is contained in:
parent
46dd78162f
commit
74fb15e426
1 changed files with 1 additions and 0 deletions
|
@ -51,6 +51,7 @@ export class IDBLogger extends BaseLogger {
|
||||||
this._flushInterval = this._platform.clock.createInterval(() => this._tryFlush(), flushInterval);
|
this._flushInterval = this._platform.clock.createInterval(() => this._tryFlush(), flushInterval);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: move dispose to ILogger, listen to pagehide elsewhere and call dispose from there, which calls _finishAllAndFlush
|
||||||
dispose(): void {
|
dispose(): void {
|
||||||
window.removeEventListener("pagehide", this, false);
|
window.removeEventListener("pagehide", this, false);
|
||||||
this._flushInterval.dispose();
|
this._flushInterval.dispose();
|
||||||
|
|
Loading…
Reference in a new issue