From a23b85fbaca8aa481f214f2b427d3da813a52981 Mon Sep 17 00:00:00 2001 From: farmio Date: Wed, 8 Nov 2023 09:42:54 +0100 Subject: [PATCH] Update main.ts --- src/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index e39423a..e5d5d49 100644 --- a/src/main.ts +++ b/src/main.ts @@ -37,7 +37,6 @@ 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 }); } @@ -45,6 +44,7 @@ class KnxFrontend extends knxElement { listenMediaQuery("(prefers-color-scheme: dark)", (_matches) => { this._applyTheme(); }); + makeDialogManager(this, this.shadowRoot!); } protected render() {