fix: need to use window.timeOut to get a timerId back

This commit is contained in:
Anish Lakhwara 2023-08-02 17:31:01 -07:00
parent 6ecfd8ec24
commit 5ed2faaecc

View File

@ -346,7 +346,10 @@ export class LogInPage extends LiteElement {
this.formStateService.send("BACKEND_INITIALIZED");
} else {
this.formStateService.send("BACKEND_NOT_INITIALIZED");
this.timerId = setTimeout(() => this.checkBackendInitialized(), 5000);
this.timerId = window.setTimeout(
() => this.checkBackendInitialized(),
5000
);
}
}