Skip to content

Commit

Permalink
Clear interval before reload.
Browse files Browse the repository at this point in the history
  • Loading branch information
RubenNL committed Nov 25, 2024
1 parent fa7148a commit 946bc9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/layouts/ha-init-page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,10 @@ class HaInitPage extends LitElement {
}

private _retry() {
location.reload();
if(this._retryInterval) {
if (this._retryInterval) {
clearInterval(this._retryInterval);
}
location.reload();
}

static get styles(): CSSResultGroup {
Expand Down

0 comments on commit 946bc9c

Please sign in to comment.