This commit is contained in:
Tomas Dvorak
2026-03-13 19:11:12 +01:00
parent e08858ba48
commit 323cc5fca6
97 changed files with 1402 additions and 7091 deletions
+5 -5
View File
@@ -1,7 +1,7 @@
/* eslint-disable no-restricted-globals */
// Service Worker for PWA support and offline functionality
const CACHE_VERSION = 'v1.0.2';
const CACHE_VERSION = 'v1.0.3';
const CACHE_NAME = `fotbal-club-cache-${CACHE_VERSION}`;
// Rate limiting for background updates
@@ -14,8 +14,8 @@ const STATIC_ASSETS = [
'/index.html',
'/manifest.json',
'/favicon.ico',
'/logo192.png',
'/logo512.png',
'/logo192.png?v=2',
'/logo512.png?v=2',
'/robots.txt',
];
@@ -266,8 +266,8 @@ self.addEventListener('push', (event) => {
const title = data.title || 'Fotbal Club';
const options = {
body: data.body || 'Nová notifikace',
icon: '/logo192.png',
badge: '/logo192.png',
icon: '/logo192.png?v=2',
badge: '/logo192.png?v=2',
data: data.url || '/',
};