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
|
|
@ -406,7 +406,7 @@ async def serve_media(path: str, request: _Request):
|
||||||
raise _HE(404, "Nicht gefunden.")
|
raise _HE(404, "Nicht gefunden.")
|
||||||
return _media_response(filepath)
|
return _media_response(filepath)
|
||||||
|
|
||||||
APP_VER = "885" # muss mit APP_VER in app.js übereinstimmen
|
APP_VER = "886" # muss mit APP_VER in app.js übereinstimmen
|
||||||
|
|
||||||
@app.get("/.well-known/assetlinks.json")
|
@app.get("/.well-known/assetlinks.json")
|
||||||
async def assetlinks():
|
async def assetlinks():
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
Router, State-Management, Navigation, Initialisierung.
|
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 APP_VERSION = '1.5.1'; // ← semantische Version, wird bei make release gesetzt
|
||||||
const IS_STAGING = location.hostname === 'staging.banyaro.app';
|
const IS_STAGING = location.hostname === 'staging.banyaro.app';
|
||||||
// Cache-Bust-Parameter nach Update-Reload sofort entfernen
|
// Cache-Bust-Parameter nach Update-Reload sofort entfernen
|
||||||
|
|
|
||||||
|
|
@ -700,7 +700,7 @@ window.Page_routes = (() => {
|
||||||
ovl.querySelector('#rk-rec-startbtn').addEventListener('click', _startRecInOvl);
|
ovl.querySelector('#rk-rec-startbtn').addEventListener('click', _startRecInOvl);
|
||||||
}
|
}
|
||||||
|
|
||||||
function _startRecInOvl() {
|
async function _startRecInOvl() {
|
||||||
if (!navigator.geolocation) { UI.toast.error('GPS nicht verfügbar.'); return; }
|
if (!navigator.geolocation) { UI.toast.error('GPS nicht verfügbar.'); return; }
|
||||||
_recActive = true;
|
_recActive = true;
|
||||||
_recTrack = []; _recDistKm = 0; _recStartTime = Date.now();
|
_recTrack = []; _recDistKm = 0; _recStartTime = Date.now();
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
Offline-Cache + Push Notifications + Tile-Cache
|
Offline-Cache + Push Notifications + Tile-Cache
|
||||||
============================================================ */
|
============================================================ */
|
||||||
|
|
||||||
const CACHE_VERSION = 'by-v885';
|
const CACHE_VERSION = 'by-v886';
|
||||||
const CACHE_STATIC = `${CACHE_VERSION}-static`;
|
const CACHE_STATIC = `${CACHE_VERSION}-static`;
|
||||||
const CACHE_TILES = 'ban-yaro-tiles-v1'; // bleibt über SW-Updates erhalten
|
const CACHE_TILES = 'ban-yaro-tiles-v1'; // bleibt über SW-Updates erhalten
|
||||||
const CACHE_API = 'ban-yaro-api-v1'; // API-Response-Cache
|
const CACHE_API = 'ban-yaro-api-v1'; // API-Response-Cache
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue