This commit is contained in:
Mateusz Gruszczyński
2026-08-24 23:20:06 +02:00
parent 76a6f050ae
commit 7de006e841
10 changed files with 34 additions and 26 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
const CACHE = 'gree-controller-v060';
const CACHE = 'gree-controller-v061';
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')];