8 lines
395 B
JavaScript
8 lines
395 B
JavaScript
// The site owns the activation protocol; engine packages own the asset allowlist.
|
|
// Imported-script changes are checked with updateViaCache: 'none'.
|
|
importScripts('/cad/sw.js');
|
|
self.addEventListener('message', (event) => {
|
|
if (event.data?.type === 'SKIP_WAITING') event.waitUntil(self.skipWaiting());
|
|
});
|
|
self.addEventListener('activate', (event) => event.waitUntil(self.clients.claim()));
|