UX: Wetter-Preset + robusteres Tile-Prefetch (gemeinsamer LastPos), SW by-v1091
Beide nutzen jetzt by_last_position aus localStorage: - wetter.js: speichert jede erfolgreiche GPS-Position; bei GPS-Fehler (kein Netz, Permission verweigert) wird der letzte bekannte Ort als Fallback genutzt — kein Error-Banner mehr wenn man ihn schon einmal hatte - offline-indicator.js: _prefetchTiles versucht erst GPS, fällt dann auf den gespeicherten letzten Ort zurück → Step 5 wird auch ohne aktive GPS-Permission grün, sobald Wetter (oder andere Module) einmal eine Position eingeloggt haben - TILE_MIN von 50 auf 20 gesenkt — 5x4 Tiles reichen für eine brauchbare Offline-Karte im Nahbereich
This commit is contained in:
parent
2876469e91
commit
0ba0de12b3
6 changed files with 65 additions and 24 deletions
|
|
@ -4,7 +4,7 @@
|
|||
============================================================ */
|
||||
|
||||
// ← EINZIGE Stelle für die Version — STATIC_ASSETS und CACHE_VERSION leiten sich ab
|
||||
const VER = '1090';
|
||||
const VER = '1091';
|
||||
const CACHE_VERSION = `by-v${VER}`;
|
||||
const CACHE_STATIC = `${CACHE_VERSION}-static`;
|
||||
const CACHE_TILES = 'ban-yaro-tiles-v1'; // bleibt über SW-Updates erhalten
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue