This commit is contained in:
Mateusz Gruszczyński
2026-08-26 00:07:54 +02:00
parent b5a4265148
commit 6a35096c5d
10 changed files with 33 additions and 18 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
const CACHE = 'gree-controller-v074-manual-override';
const CACHE = 'gree-controller-v075-group-power-state';
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')];