make the thing work

This commit is contained in:
2026-03-31 21:34:26 -05:00
parent c16f64aa08
commit feb50ad389
+2 -5
View File
@@ -4,11 +4,8 @@
const page = document.body.dataset.page;
const isFileProtocol = window.location.protocol === 'file:';
const runtimeBasePath = !isFileProtocol && (window.location.pathname === '/fedl' || window.location.pathname.startsWith('/fedl/'))
? '/fedl'
: '';
const liveServerBase = isFileProtocol ? '' : `${window.location.origin}${runtimeBasePath}`;
const canUseLiveServer = !isFileProtocol;
const liveServerBase = 'https://raspberrypi-1.tail46eacb.ts.net/fedl';
const canUseLiveServer = !isFileProtocol || !!liveServerBase;
const liveApiUrl = `${liveServerBase}/api/list`;
const liveRunsUrl = `${liveServerBase}/api/runs`;
const liveEventsUrl = `${liveServerBase}/events`;