mirror of
https://github.com/photoprism/photoprism.git
synced 2026-01-23 18:35:16 +00:00
14 lines
483 B
JavaScript
14 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.
|
|
});
|