fixed service worker

This commit is contained in:
Luca Haid
2025-04-09 21:51:36 +02:00
parent cbb6497d77
commit c509c1bd21
4 changed files with 13 additions and 3 deletions

View File

@@ -250,6 +250,10 @@ self.addEventListener('activate', event => {
console.log('Patching PWA Service Worker: Activating...');
});
self.addEventListener('fetch', event => {
event.respondWith(fetch(event.request));
});
console.log('Patching PWA Service Worker: Script loaded.');";
header("Content-Type: application/javascript");

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

View File

@@ -3,14 +3,20 @@
"short_name": "Patching",
"description": "Patching tool for thetool.",
"start_url": "/Patching/",
"scope": "/",
"display": "standalone",
"background_color": "#ffffff",
"theme_color": "#000000",
"icons": [
{
"src": "/assets/images/favicon.ico",
"sizes": "66x61",
"type": "image/x-icon"
"src": "/assets/images/pwa-thetool-192.jpeg",
"sizes": "192x192",
"type": "image/jpeg"
},
{
"src": "/assets/images/pwa-thetool-512.jpeg",
"sizes": "512x512",
"type": "image/jpeg"
}
]
}