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:
parent
62ee64bc53
commit
3967544de7
4 changed files with 4 additions and 4 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue