refactor: add typed frontend bootstrap

This commit is contained in:
sjg
2026-08-01 13:43:46 +02:00
parent 82121491c5
commit 50e07e2715
7 changed files with 7953 additions and 7964 deletions
File diff suppressed because it is too large Load Diff
@@ -3041,9 +3041,13 @@
}
function autoInitIfVisible() {
const panel = mapEl("tab-map");
if (panel && panel.style.display !== "none" && typeof _initMapWhenReady === "function") {
_initMapWhenReady();
if (panel.style.display === "none") return;
if (typeof L === "undefined") {
window.setTimeout(autoInitIfVisible, 50);
return;
}
initAprsMap();
requestAnimationFrame(() => requestAnimationFrame(sizeAprsMapToViewport));
}
modules.map = {
initAprsMap,