Base-Paths für Root-Pfad

This commit is contained in:
Dennis Heinrich 2025-04-06 01:22:51 +02:00
parent 05f58406d0
commit 37b068396e

View file

@ -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 FILES_TO_CACHE = [
'/',
`${BASE_PATH}/`,
`${BASE_PATH}/index.html`,
`${BASE_PATH}/assets/manifest.json`,
`${BASE_PATH}/assets/script/service-worker.js`,