Sprachausgabe/englisch gefixt

This commit is contained in:
2025-08-02 19:52:31 +02:00
parent 0b13a408cd
commit eecc2b8b73
2 changed files with 119 additions and 11 deletions

View File

@@ -1,15 +1,25 @@
const CACHE_NAME = 'datumsrechner-cache-v1';
const urlsToCache = [
'/',
'/static/style.css',
'/static/favicon.ico',
'/static/favicon.png',
'/static/favicon.svg',
'/static/logo.svg',
'/static/manifest.json',
];
self.addEventListener('install', event => {
event.waitUntil(
caches.open(CACHE_NAME)
.then(cache => cache.addAll(urlsToCache))
.then(cache => {
// Füge nur existierende Dateien zum Cache hinzu
return Promise.allSettled(
urlsToCache.map(url =>
cache.add(url).catch(err => {
console.log('Failed to cache:', url, err);
})
)
);
})
);
});
self.addEventListener('fetch', event => {