This commit is contained in:
Mateusz Gruszczyński
2026-08-28 10:12:48 +02:00
parent eb325cc0c8
commit 556a031358
8 changed files with 65 additions and 56 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
const CACHE = 'gree-controller-v084-scheduled-temporary-quick-thermostat';
const CACHE = 'gree-controller-v085-temporary-condition-activation-fix';
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')];