Slide 36
Slide 36 text
skipWaiting/claim
self.addEventListener('install', (e) => {
console.info('install', e);
// make me active immediately !!
e.waitUntil(skipWaiting());
});
self.addEventListener('activate', (e) => {
console.info('activate', e);
// make me controller immediately !!
e.waitUntil(self.clients.claim());
});
36