fix: icônes PNG + fetch handler pour déclencher le prompt PWA
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
BIN
frontend/public/icon-192.png
Normal file
BIN
frontend/public/icon-192.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 11 KiB |
BIN
frontend/public/icon-512.png
Normal file
BIN
frontend/public/icon-512.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 38 KiB |
@@ -11,9 +11,15 @@
|
||||
"lang": "fr",
|
||||
"icons": [
|
||||
{
|
||||
"src": "/icon.svg",
|
||||
"sizes": "any",
|
||||
"type": "image/svg+xml",
|
||||
"src": "/icon-192.png",
|
||||
"sizes": "192x192",
|
||||
"type": "image/png",
|
||||
"purpose": "any"
|
||||
},
|
||||
{
|
||||
"src": "/icon-512.png",
|
||||
"sizes": "512x512",
|
||||
"type": "image/png",
|
||||
"purpose": "any maskable"
|
||||
}
|
||||
],
|
||||
|
||||
@@ -1,4 +1,10 @@
|
||||
// Service Worker — Sargasse-Sentry push notifications
|
||||
// Service Worker — Sargasse-Sentry
|
||||
// fetch handler requis par Chrome pour le critère d'installabilité PWA
|
||||
self.addEventListener('fetch', (event) => {
|
||||
// Pass-through : on ne met rien en cache pour l'instant (app data-driven, pas offline)
|
||||
event.respondWith(fetch(event.request));
|
||||
});
|
||||
|
||||
self.addEventListener('push', (event) => {
|
||||
if (!event.data) return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user