From 715ab3ea137bf6e7ac859a6cf0ef4aa1ffc34f66 Mon Sep 17 00:00:00 2001 From: Alexander Schmidt Date: Thu, 5 Feb 2026 15:18:24 +0100 Subject: [PATCH] fix: update service-worker cache for removed chat.js, guard location-map invalidateSize call --- js/components/location-map.js | 2 +- service-worker.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/js/components/location-map.js b/js/components/location-map.js index fc13c2e..2e8ac1e 100644 --- a/js/components/location-map.js +++ b/js/components/location-map.js @@ -124,7 +124,7 @@ class LocationMap extends HTMLElement { // Invalidate size after render (fixes grey tiles issue) setTimeout(() => { - this.map.invalidateSize() + this.map?.invalidateSize() }, 100) } diff --git a/service-worker.js b/service-worker.js index 6f8dbcc..f8418b5 100644 --- a/service-worker.js +++ b/service-worker.js @@ -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',