Fix: routes.js SyntaxError — _startRecInOvl als async deklariert (SW by-v886)

await _recAcquireWakeLock() in nicht-async Funktion → SyntaxError → ganzes Modul
crashte → Fallback "Seite in Entwicklung" auf Production.
This commit is contained in:
rene 2026-05-12 19:24:19 +02:00
parent 62ee64bc53
commit 3967544de7
4 changed files with 4 additions and 4 deletions

View file

@ -3,7 +3,7 @@
Router, State-Management, Navigation, Initialisierung.
============================================================ */
const APP_VER = '885'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen
const APP_VER = '886'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen
const APP_VERSION = '1.5.1'; // ← semantische Version, wird bei make release gesetzt
const IS_STAGING = location.hostname === 'staging.banyaro.app';
// Cache-Bust-Parameter nach Update-Reload sofort entfernen

View file

@ -700,7 +700,7 @@ window.Page_routes = (() => {
ovl.querySelector('#rk-rec-startbtn').addEventListener('click', _startRecInOvl);
}
function _startRecInOvl() {
async function _startRecInOvl() {
if (!navigator.geolocation) { UI.toast.error('GPS nicht verfügbar.'); return; }
_recActive = true;
_recTrack = []; _recDistKm = 0; _recStartTime = Date.now();

View file

@ -3,7 +3,7 @@
Offline-Cache + Push Notifications + Tile-Cache
============================================================ */
const CACHE_VERSION = 'by-v885';
const CACHE_VERSION = 'by-v886';
const CACHE_STATIC = `${CACHE_VERSION}-static`;
const CACHE_TILES = 'ban-yaro-tiles-v1'; // bleibt über SW-Updates erhalten
const CACHE_API = 'ban-yaro-api-v1'; // API-Response-Cache