Fix: Offline-UX — 📡 statt 🚧 bei offline-Seiten, schnellerer Warm-up, mehr Endpoints gecacht (SW by-v989)

This commit is contained in:
rene 2026-05-15 17:25:24 +02:00
parent 8ad3ca8a74
commit f0c1ee3386
4 changed files with 26 additions and 16 deletions

View file

@ -668,7 +668,8 @@ window.Page_routes = (() => {
if (!_appState.user) { UI.toast.warning('Bitte anmelden.'); return; }
if (_recOvl) return;
await UI.loadLeaflet?.() ?? Promise.resolve();
try { await (UI.loadLeaflet?.() ?? Promise.resolve()); }
catch { UI.toast.warning('Karte offline nicht verfügbar — GPS-Aufzeichnung läuft trotzdem.'); }
const ovl = document.createElement('div');
ovl.id = 'rk-rec-ovl';