todo preparado como pwa con branding correcto
This commit is contained in:
15
client/public/sw.js
Normal file
15
client/public/sw.js
Normal file
@@ -0,0 +1,15 @@
|
||||
// Minimal service worker to enable PWA installability
|
||||
self.addEventListener("install", () => {
|
||||
// Activate immediately on install
|
||||
self.skipWaiting();
|
||||
});
|
||||
|
||||
self.addEventListener("activate", (event) => {
|
||||
event.waitUntil(self.clients.claim());
|
||||
});
|
||||
|
||||
// Provide a basic fetch handler (required by some browsers for installability)
|
||||
self.addEventListener("fetch", (event) => {
|
||||
event.respondWith(fetch(event.request));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user