This commit is contained in:
Mateusz Gruszczyński
2026-08-25 09:43:28 +02:00
parent fd26d6877f
commit 440c7c3a8d
15 changed files with 118 additions and 55 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
const CACHE = 'gree-controller-v065';
const CACHE = 'gree-controller-v066';
const SCOPE = new URL(self.registration.scope).pathname.replace(/\/$/, '');
const path = value => `${SCOPE}${value.startsWith('/') ? value : `/${value}`}` || '/';
const ASSETS = [path('/'), path('/styles.css'), path('/app.js'), path('/theme-init.js'), path('/favicon.svg'), path('/manifest.webmanifest'), path('/lang/index.json'), path('/lang/en.json')];