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

@ -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();