diff --git a/backend/static/js/app.js b/backend/static/js/app.js index 3d5071d..65bb5a3 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 = '317'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen +const APP_VER = '318'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen const App = (() => { @@ -830,7 +830,7 @@ const App = (() => { getInstallPrompt: () => _installPrompt, requireAuth, showOnboarding: _showOnboardingModal, updateNotifBadge: _updateNotifBadge, - _checkNearbyAlerts }; + checkNearbyAlerts: _checkNearbyAlerts }; })(); diff --git a/backend/static/js/pages/poison.js b/backend/static/js/pages/poison.js index fad076d..af52c68 100644 --- a/backend/static/js/pages/poison.js +++ b/backend/static/js/pages/poison.js @@ -470,8 +470,8 @@ window.Page_poison = (() => { const footer = ` - `; @@ -541,6 +541,8 @@ window.Page_poison = (() => { _renderMarkers(); _renderList(); _updateBadge(_reports.length); + App.checkNearbyAlerts(); + App.callModule('map', 'refresh'); UI.toast.success('Giftköder gemeldet! Danke für die Warnung.'); UI.modal.close(); }); diff --git a/backend/static/sw.js b/backend/static/sw.js index 48c0ad1..5d370e3 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-v329'; +const CACHE_VERSION = 'by-v330'; const CACHE_STATIC = `${CACHE_VERSION}-static`; const CACHE_TILES = 'ban-yaro-tiles-v1'; // bleibt über SW-Updates erhalten