File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11[package ]
22name = " wolfstack"
3- version = " 22.6.12 "
3+ version = " 22.6.13 "
44edition = " 2024"
55authors = [" Wolf Software Systems Ltd" ]
66description = " Server management platform for the Wolf software suite"
Original file line number Diff line number Diff line change @@ -2417,6 +2417,11 @@ function initMap() {
24172417 if (worldMap) return;
24182418 const mapEl = document.getElementById('world-map');
24192419 if (!mapEl) return;
2420+ // Leaflet is loaded with `defer` in index.html but app.js is injected via
2421+ // document.write without defer, so on cold loads `L` may not be ready when
2422+ // the first dashboard render fires updateMap(). Bail quietly — the next
2423+ // poll tick will retry once Leaflet has parsed.
2424+ if (typeof L === 'undefined') return;
24202425
24212426 worldMap = L.map('world-map', {
24222427 attributionControl: false,
@@ -2430,6 +2435,7 @@ function initMap() {
24302435
24312436function updateMap(nodes) {
24322437 if (!document.getElementById('world-map')) return;
2438+ if (typeof L === 'undefined') return;
24332439 if (!worldMap) initMap();
24342440 if (!worldMap) return;
24352441
You can’t perform that action at this time.
0 commit comments