From 9eb9a0afa3ee31d4d1b5494efbb937bdad4ab3d7 Mon Sep 17 00:00:00 2001 From: calesthio Date: Sun, 15 Mar 2026 09:27:15 -0700 Subject: [PATCH] =?UTF-8?q?fix:=20Docker=20dashboard=20not=20loading=20?= =?UTF-8?q?=E2=80=94=20remove=20localhost=20hostname=20check?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The isServer detection required location.hostname === 'localhost', which fails in Docker containers where the hostname is the container ID. Now any non-file: protocol correctly triggers API fetch and SSE. Fixes #3 --- dashboard/public/jarvis.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dashboard/public/jarvis.html b/dashboard/public/jarvis.html index 4300112..9912b21 100644 --- a/dashboard/public/jarvis.html +++ b/dashboard/public/jarvis.html @@ -1188,7 +1188,7 @@ function init(){ } document.addEventListener('DOMContentLoaded', () => { - const isServer = location.protocol !== 'file:' && location.hostname === 'localhost'; + const isServer = location.protocol !== 'file:'; if (isServer) { // Server mode: always fetch live data from API (ignore any stale inline D)