diff --git a/src/trx-client/trx-frontend/trx-frontend-http/assets/web/app.js b/src/trx-client/trx-frontend/trx-frontend-http/assets/web/app.js index 8e8ba35..4f5d5ad 100644 --- a/src/trx-client/trx-frontend/trx-frontend-http/assets/web/app.js +++ b/src/trx-client/trx-frontend/trx-frontend-http/assets/web/app.js @@ -3425,6 +3425,7 @@ async function initializeApp() { hideAuthGate(); updateAuthUI(); connect(); + connectDecode(); resizeHeaderSignalCanvas(); startHeaderSignalSampling(); return; @@ -3437,6 +3438,7 @@ async function initializeApp() { updateAuthUI(); applyAuthRestrictions(); connect(); + connectDecode(); resizeHeaderSignalCanvas(); startHeaderSignalSampling(); } else { @@ -3463,6 +3465,7 @@ document.getElementById("auth-form").addEventListener("submit", async (e) => { updateAuthUI(); applyAuthRestrictions(); connect(); + connectDecode(); resizeHeaderSignalCanvas(); startHeaderSignalSampling(); } catch (err) { @@ -3484,6 +3487,7 @@ if (guestBtn) { updateAuthUI(); applyAuthRestrictions(); connect(); + connectDecode(); resizeHeaderSignalCanvas(); startHeaderSignalSampling(); }); @@ -6235,13 +6239,8 @@ function connectDecode() { } }).catch(() => { clearTimeout(historyTimeout); flushLiveBuffer(); }); } -if (document.readyState === "complete") { - connectDecode(); -} else { - window.addEventListener("load", () => { - connectDecode(); - }, { once: true }); -} +// connectDecode() is called from initializeApp() after auth succeeds, +// and from login/guest handlers — no standalone window.load call needed. // Release PTT on page unload to prevent stuck transmit window.addEventListener("beforeunload", () => { diff --git a/src/trx-client/trx-frontend/trx-frontend-http/src/auth.rs b/src/trx-client/trx-frontend/trx-frontend-http/src/auth.rs index 7567042..0bb978e 100644 --- a/src/trx-client/trx-frontend/trx-frontend-http/src/auth.rs +++ b/src/trx-client/trx-frontend/trx-frontend-http/src/auth.rs @@ -423,6 +423,7 @@ impl RouteAccess { || path == "/rigs" || path == "/events" || path == "/decode" + || path == "/decode/history" || path == "/spectrum" || path == "/audio" || path == "/bookmarks" @@ -430,6 +431,7 @@ impl RouteAccess { || path.starts_with("/rigs?") || path.starts_with("/events?") || path.starts_with("/decode?") + || path.starts_with("/decode/history?") || path.starts_with("/spectrum?") || path.starts_with("/audio?") || path.starts_with("/bookmarks?")