fix: update service-worker cache for removed chat.js, guard location-map invalidateSize call

This commit is contained in:
2026-02-05 15:18:24 +01:00
parent dc2cd07e0c
commit 715ab3ea13
2 changed files with 3 additions and 3 deletions

View File

@@ -124,7 +124,7 @@ class LocationMap extends HTMLElement {
// Invalidate size after render (fixes grey tiles issue)
setTimeout(() => {
this.map.invalidateSize()
this.map?.invalidateSize()
}, 100)
}

View File

@@ -1,4 +1,4 @@
const CACHE_NAME = 'dgray-v38';
const CACHE_NAME = 'dgray-v39';
const STATIC_ASSETS = [
'/',
'/index.html',
@@ -11,7 +11,7 @@ const STATIC_ASSETS = [
'/js/router.js',
'/js/i18n.js',
'/js/services/crypto.js',
'/js/services/chat.js',
'/js/services/conversations.js',
'/js/services/directus.js',
'/js/services/auth.js',
'/js/components/chat-widget.js',