From feb50ad389bbdeaff64cc4029d77bdbe8686b1e4 Mon Sep 17 00:00:00 2001 From: mileswa1q22 Date: Tue, 31 Mar 2026 21:34:26 -0500 Subject: [PATCH] make the thing work --- app.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/app.js b/app.js index 0eaf122..240d9a7 100644 --- a/app.js +++ b/app.js @@ -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`;