mirror of
https://github.com/Dvorinka/MyClubServer.git
synced 2026-06-03 18:22:57 +00:00
enhance
This commit is contained in:
@@ -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 || '/',
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user