Sprachausgabe/englisch gefixt
This commit is contained in:
@@ -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 => {
|
||||
|
Reference in New Issue
Block a user