mirror of
https://github.com/cloudmaker97/DurstRechner.git
synced 2025-12-06 07:58:39 +00:00
Base-Paths für Root-Pfad
This commit is contained in:
parent
05f58406d0
commit
37b068396e
1 changed files with 1 additions and 1 deletions
|
|
@ -3,7 +3,7 @@ const CACHE_NAME = 'durst-rechner-v2';
|
||||||
const BASE_PATH = self.location.pathname.includes('DurstRechner') ? '/DurstRechner' : ''; // Handle GitHub Pages vs. Localhost
|
const BASE_PATH = self.location.pathname.includes('DurstRechner') ? '/DurstRechner' : ''; // Handle GitHub Pages vs. Localhost
|
||||||
|
|
||||||
const FILES_TO_CACHE = [
|
const FILES_TO_CACHE = [
|
||||||
'/',
|
`${BASE_PATH}/`,
|
||||||
`${BASE_PATH}/index.html`,
|
`${BASE_PATH}/index.html`,
|
||||||
`${BASE_PATH}/assets/manifest.json`,
|
`${BASE_PATH}/assets/manifest.json`,
|
||||||
`${BASE_PATH}/assets/script/service-worker.js`,
|
`${BASE_PATH}/assets/script/service-worker.js`,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue