mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-11 16:24:11 +01:00
15 lines
483 B
JavaScript
15 lines
483 B
JavaScript
// Minimal fallback service worker served during development and tests.
|
|
// Production builds replace this handler with the Workbox-generated sw.js.
|
|
self.addEventListener("install", (event) => {
|
|
self.skipWaiting();
|
|
});
|
|
|
|
self.addEventListener("activate", (event) => {
|
|
event.waitUntil(self.clients.claim());
|
|
});
|
|
|
|
self.addEventListener("fetch", () => {
|
|
// Default network-first behaviour; caching is delegated to the
|
|
// Workbox-generated service worker in production builds.
|
|
});
|