From 9ab3db287a8ae2ae46a5112cd014d31afcb74acb Mon Sep 17 00:00:00 2001 From: Stan Grams Date: Wed, 1 Apr 2026 18:52:31 +0200 Subject: [PATCH] [fix](trx-frontend-http): expose missing functions on window.trx namespace Add markDecodeMapSyncPending, decodeHistoryMapRenderingDeferred, decodeHistoryReplayActive, decodeMapSyncPending, updateDocumentTitle, activeChannelRds, _activeTab, and locationSubtitle to window.trx so map-core.js can access them via the T alias. Co-Authored-By: Claude Opus 4.6 (1M context) Signed-off-by: Stan Grams --- .../trx-frontend/trx-frontend-http/assets/web/app.js | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 96ce31e..374c5d2 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 @@ -4609,6 +4609,16 @@ Object.assign(window.trx, { cssColorToRgba, rgbaWithAlpha, isBinsArray, estimateNoiseFloorDb, spectrumVisibleRange, drawSpectrum, bandForHz: function(hz) { return window.trx.map?.bandForHz?.(hz); }, + markDecodeMapSyncPending, + decodeHistoryMapRenderingDeferred, + updateDocumentTitle, + activeChannelRds, +}); +Object.defineProperties(window.trx, { + decodeHistoryReplayActive: { get() { return decodeHistoryReplayActive; } }, + decodeMapSyncPending: { get() { return decodeMapSyncPending; } }, + _activeTab: { get() { return _activeTab; } }, + locationSubtitle: { get() { return locationSubtitle; } }, }); // Start the app