[fix](trx-frontend-http): guard initAprsMap against missing Leaflet variable

Prevent ReferenceError when navigating to the map tab before the
Leaflet CDN script has finished loading.

https://claude.ai/code/session_018nDze1zN1AR3UgYRx5pqcL
Signed-off-by: Claude <noreply@anthropic.com>
This commit is contained in:
Claude
2026-03-30 06:02:58 +00:00
committed by Stan Grams
parent c3b9d2d6fd
commit 67f0d451b9
@@ -6030,6 +6030,7 @@ function materializeBufferedMapLayers() {
}
function initAprsMap() {
if (typeof L === "undefined") return;
const mapEl = document.getElementById("aprs-map");
if (!mapEl) return;
sizeAprsMapToViewport();