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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user