[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) <noreply@anthropic.com> Signed-off-by: Stan Grams <sjg@haxx.space>
This commit is contained in:
@@ -4609,6 +4609,16 @@ Object.assign(window.trx, {
|
|||||||
cssColorToRgba, rgbaWithAlpha, isBinsArray, estimateNoiseFloorDb,
|
cssColorToRgba, rgbaWithAlpha, isBinsArray, estimateNoiseFloorDb,
|
||||||
spectrumVisibleRange, drawSpectrum,
|
spectrumVisibleRange, drawSpectrum,
|
||||||
bandForHz: function(hz) { return window.trx.map?.bandForHz?.(hz); },
|
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
|
// Start the app
|
||||||
|
|||||||
Reference in New Issue
Block a user