Skip to content

Commit

Permalink
Update main.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
farmio committed Nov 8, 2023
1 parent a40d2f3 commit a23b85f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ class KnxFrontend extends knxElement {
}
this.addEventListener("knx-location-changed", (e) => this._setRoute(e as LocationChangedEvent));

makeDialogManager(this, this.shadowRoot!);
if (this.route.path === "" || this.route.path === "/") {
navigate("/knx/info", { replace: true });
}

listenMediaQuery("(prefers-color-scheme: dark)", (_matches) => {
this._applyTheme();
});
makeDialogManager(this, this.shadowRoot!);
}

protected render() {
Expand Down

0 comments on commit a23b85f

Please sign in to comment.