refactor: add typed frontend bootstrap
This commit is contained in:
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,
|
||||
|
||||
Reference in New Issue
Block a user