mirror of
https://github.com/oceanprotocol/docs.git
synced 2024-11-01 07:45:40 +01:00
14 lines
326 B
JavaScript
14 lines
326 B
JavaScript
self.addEventListener('install', function(e) {
|
|
self.skipWaiting();
|
|
});
|
|
|
|
self.addEventListener('activate', function(e) {
|
|
self.registration.unregister()
|
|
.then(function() {
|
|
return self.clients.matchAll();
|
|
})
|
|
.then(function(clients) {
|
|
clients.forEach(client => client.navigate(client.url))
|
|
});
|
|
});
|