Fix: zentrale Karte nutzte window.UI (undefined) statt bare UI → immer Raster-Branch

ui.js exponiert 'const UI' = globales lexikalisches Binding (bare UI), NICHT window.UI.
map.js _addBasemap prüfte window.UI → immer falsy → Vektor-Pfad nie genommen.
Jetzt: typeof UI-Check. (window.UI?.toast in boot/api/app sind separat tote No-Ops.)
This commit is contained in:
rene 2026-06-05 09:06:09 +02:00
parent 5cb7c3091d
commit 1d64dc5d70
7 changed files with 19 additions and 18 deletions

View file

@ -86,14 +86,14 @@
<title>Ban Yaro</title>
<!-- Theme + theme-color Statusleiste vor CSS setzen -->
<script src="/js/boot-early.js?v=1177"></script>
<script src="/js/boot-early.js?v=1178"></script>
<!-- CSS: Reihenfolge ist wichtig — ?v= zwingt Browser zur Neuladung -->
<link rel="stylesheet" href="/css/design-system.css?v=1177">
<link rel="stylesheet" href="/css/layout.css?v=1177">
<link rel="stylesheet" href="/css/components.css?v=1177">
<link rel="stylesheet" href="/css/utilities.css?v=1177">
<link rel="stylesheet" href="/css/lists.css?v=1177">
<link rel="stylesheet" href="/css/design-system.css?v=1178">
<link rel="stylesheet" href="/css/layout.css?v=1178">
<link rel="stylesheet" href="/css/components.css?v=1178">
<link rel="stylesheet" href="/css/utilities.css?v=1178">
<link rel="stylesheet" href="/css/lists.css?v=1178">
</head>
<body>
@ -617,11 +617,11 @@
<div id="modal-container"></div>
<!-- JS: Reihenfolge ist wichtig — erst Basis, dann Features -->
<script src="/js/api.js?v=1177"></script>
<script src="/js/ui.js?v=1177"></script>
<script src="/js/app.js?v=1177"></script>
<script src="/js/worlds.js?v=1177"></script>
<script src="/js/offline-indicator.js?v=1177"></script>
<script src="/js/api.js?v=1178"></script>
<script src="/js/ui.js?v=1178"></script>
<script src="/js/app.js?v=1178"></script>
<script src="/js/worlds.js?v=1178"></script>
<script src="/js/offline-indicator.js?v=1178"></script>
<!-- Feature-Seiten werden lazy geladen -->
@ -631,7 +631,7 @@
<!-- Boot: Offline-Banner + SW-Registration (extrahiert für CSP) -->
<script src="/js/boot.js?v=1177"></script>
<script src="/js/boot.js?v=1178"></script>
</body>