diff --git a/backend/static/js/app.js b/backend/static/js/app.js index 343d915..c7159df 100644 --- a/backend/static/js/app.js +++ b/backend/static/js/app.js @@ -3,7 +3,7 @@ Router, State-Management, Navigation, Initialisierung. ============================================================ */ -const APP_VER = '460'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen +const APP_VER = '461'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen const App = (() => { diff --git a/backend/static/js/pages/welcome.js b/backend/static/js/pages/welcome.js index 6cac1f4..a105a61 100644 --- a/backend/static/js/pages/welcome.js +++ b/backend/static/js/pages/welcome.js @@ -526,10 +526,19 @@ window.Page_welcome = (() => { const chipsRow = _container.querySelector('#wc-chips-row'); if (!chipsRow) return; chipsRow.outerHTML = _chipsHTML(dash); - // re-bind data-nav auf den neuen Chips _container.querySelectorAll('#wc-chips-row [data-nav]').forEach(el => { el.addEventListener('click', () => App.navigate(el.dataset.nav)); }); + // Exercise-Chip hat kein data-nav — separat binden + const exChip = _container.querySelector('#wc-chip-exercise'); + if (exChip) { + exChip.addEventListener('click', () => { + App.navigate('uebungen', true, { + name: exChip.dataset.exerciseName, + kategorie: exChip.dataset.exerciseKat, + }); + }); + } } // ---------------------------------------------------------- diff --git a/backend/static/sw.js b/backend/static/sw.js index 8b752dc..f75c289 100644 --- a/backend/static/sw.js +++ b/backend/static/sw.js @@ -3,7 +3,7 @@ Offline-Cache + Push Notifications + Tile-Cache ============================================================ */ -const CACHE_VERSION = 'by-v483'; +const CACHE_VERSION = 'by-v484'; const CACHE_STATIC = `${CACHE_VERSION}-static`; const CACHE_TILES = 'ban-yaro-tiles-v1'; // bleibt über SW-Updates erhalten