feat(PWA): Ajoute un service worker et gère l'installation dans app.js.

This commit is contained in:
Serreau Jovann
2025-11-16 23:51:52 +01:00
parent f406be8544
commit 9d526f2556
2 changed files with 11 additions and 1 deletions

8
public/pwabuilder-sw.js Normal file
View File

@@ -0,0 +1,8 @@
self.addEventListener("message", (event) => {
if (event.data && event.data.type === "SKIP_WAITING") {
self.skipWaiting();
}
});
self.addEventListener('install', async (event) => {
});