From abb37a35613c8a3c836fc82d6a42c79505017d79 Mon Sep 17 00:00:00 2001 From: waclaw66 Date: Wed, 30 Oct 2024 13:04:45 +0100 Subject: [PATCH] adds support for HACS hass_ingress integration --- dashboard/src/entrypoint/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dashboard/src/entrypoint/main.ts b/dashboard/src/entrypoint/main.ts index 21c157f3..faaa7982 100644 --- a/dashboard/src/entrypoint/main.ts +++ b/dashboard/src/entrypoint/main.ts @@ -6,7 +6,7 @@ async function main() { let url = ""; // Detect if we're running in the (production) webserver included in the matter server or not. - const isProductionServer = location.href.includes(":5580") || location.href.includes("hassio_ingress"); + const isProductionServer = location.href.includes(":5580") || location.href.includes("hassio_ingress") || location.href.includes("/api/ingress/"); if (!isProductionServer) { // development server, ask for url to matter server