fixed service worker
This commit is contained in:
@@ -250,6 +250,10 @@ self.addEventListener('activate', event => {
|
|||||||
console.log('Patching PWA Service Worker: Activating...');
|
console.log('Patching PWA Service Worker: Activating...');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
self.addEventListener('fetch', event => {
|
||||||
|
event.respondWith(fetch(event.request));
|
||||||
|
});
|
||||||
|
|
||||||
console.log('Patching PWA Service Worker: Script loaded.');";
|
console.log('Patching PWA Service Worker: Script loaded.');";
|
||||||
|
|
||||||
header("Content-Type: application/javascript");
|
header("Content-Type: application/javascript");
|
||||||
|
|||||||
BIN
public/assets/images/pwa-thetool-192.jpeg
Normal file
BIN
public/assets/images/pwa-thetool-192.jpeg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 8.3 KiB |
BIN
public/assets/images/pwa-thetool-512.jpeg
Normal file
BIN
public/assets/images/pwa-thetool-512.jpeg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 25 KiB |
@@ -3,14 +3,20 @@
|
|||||||
"short_name": "Patching",
|
"short_name": "Patching",
|
||||||
"description": "Patching tool for thetool.",
|
"description": "Patching tool for thetool.",
|
||||||
"start_url": "/Patching/",
|
"start_url": "/Patching/",
|
||||||
|
"scope": "/",
|
||||||
"display": "standalone",
|
"display": "standalone",
|
||||||
"background_color": "#ffffff",
|
"background_color": "#ffffff",
|
||||||
"theme_color": "#000000",
|
"theme_color": "#000000",
|
||||||
"icons": [
|
"icons": [
|
||||||
{
|
{
|
||||||
"src": "/assets/images/favicon.ico",
|
"src": "/assets/images/pwa-thetool-192.jpeg",
|
||||||
"sizes": "66x61",
|
"sizes": "192x192",
|
||||||
"type": "image/x-icon"
|
"type": "image/jpeg"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"src": "/assets/images/pwa-thetool-512.jpeg",
|
||||||
|
"sizes": "512x512",
|
||||||
|
"type": "image/jpeg"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user