added dockerfile and updated Readme

This commit is contained in:
cpu
2025-03-22 23:17:40 +01:00
parent 21cb105cd0
commit 1cfcd628d4
13 changed files with 49 additions and 23 deletions

14
sw.js
View File

@@ -1,11 +1,19 @@
// Updated service worker code - sw.js
const CACHE_NAME = 'chess-timer-cache-v1';
const CACHE_NAME = 'timer-cache-v1';
const urlsToCache = [
'/',
'/index.html',
'/styles.css',
'/script.js'
// Only include files that you're sure exist
'/apps.js',
'/audio.js',
'/icons/android-chrome-192x192.png',
'/icons/android-chrome-512x512.png',
'/icons/apple-touch-icon.png',
'/icons/favicon-32x32.png',
'/icons/favicon-16x16.png',
'/favicon.ico',
'/manifest.json',
'/site.webmanifest'
];
self.addEventListener('install', event => {