// To deregister the current service worker. 
// Can be removed when we are confident all client services workers are deregistered (~1 year)

self.addEventListener('install', function(_) {
    self.skipWaiting();
});
  
self.addEventListener('activate', function(_) {
self.registration.unregister()
    .then(function() {
    return self.clients.matchAll();
    })
    .then(function(clients) {
    clients.forEach(client => client.navigate(client.url))
    });
});