puppeteer/sw.js
release-please[bot] faad4c5ff9 deploy: b5a345b06b
2022-07-05 14:00:14 +00:00

16 lines
316 B
JavaScript

self.addEventListener('install', () => {
self.skipWaiting();
});
self.addEventListener('activate', () => {
self.clients
.matchAll({
type: 'window',
})
.then(windowClients => {
windowClients.forEach(windowClient => {
windowClient.navigate(windowClient.url);
});
});
});