Update 2025-04-13_16:43:49

This commit is contained in:
root
2025-04-13 16:43:50 +02:00
commit 5b46114a61
2244 changed files with 407391 additions and 0 deletions

24
static/service-worker.js Normal file
View File

@ -0,0 +1,24 @@
self.addEventListener('install', (e) => {
e.waitUntil(
caches.open('victorytimer-v1').then((cache) => {
return cache.addAll([
'/',
'/index.html',
'/style.css',
'/app.js',
'/timer.js',
'/button.js',
'/chart.js',
'/messages.js',
'/manifest.webmanifest'
]);
})
);
});
self.addEventListener('fetch', (e) => {
e.respondWith(
caches.match(e.request).then((resp) => resp || fetch(e.request))
);
});