This commit is contained in:
Mateusz Gruszczyński
2026-08-26 22:47:56 +02:00
parent f8d6bc2304
commit 584bdca7c6
11 changed files with 62 additions and 36 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
const CACHE = 'gree-controller-v077-mode-label-fit';
const CACHE = 'gree-controller-v078-zone-status-unit-power';
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')];