diff --git a/application/Patching/PatchingController.php b/application/Patching/PatchingController.php index b8f5afac9..8e1847272 100644 --- a/application/Patching/PatchingController.php +++ b/application/Patching/PatchingController.php @@ -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"); diff --git a/public/assets/images/pwa-thetool-192.jpeg b/public/assets/images/pwa-thetool-192.jpeg new file mode 100644 index 000000000..d90549cb3 Binary files /dev/null and b/public/assets/images/pwa-thetool-192.jpeg differ diff --git a/public/assets/images/pwa-thetool-512.jpeg b/public/assets/images/pwa-thetool-512.jpeg new file mode 100644 index 000000000..4ef1fe648 Binary files /dev/null and b/public/assets/images/pwa-thetool-512.jpeg differ diff --git a/public/assets/pwa/patching-manifest.json b/public/assets/pwa/patching-manifest.json index 42d56e1f4..3ea266950 100644 --- a/public/assets/pwa/patching-manifest.json +++ b/public/assets/pwa/patching-manifest.json @@ -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" } ] } \ No newline at end of file