fix: Docker dashboard not loading — remove localhost hostname check

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
This commit is contained in:
calesthio
2026-03-15 09:27:15 -07:00
parent 35658ac6a1
commit 9eb9a0afa3

View File

@@ -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)