mirror of
https://github.com/oceanprotocol/docs.git
synced 2024-11-26 19:49:26 +01:00
Update sw.js
This commit is contained in:
parent
ce37be729b
commit
a47b119007
2
sw.js
2
sw.js
@ -1,8 +1,10 @@
|
|||||||
self.addEventListener('install', function(e) {
|
self.addEventListener('install', function(e) {
|
||||||
|
console.log('script install')
|
||||||
self.skipWaiting();
|
self.skipWaiting();
|
||||||
});
|
});
|
||||||
|
|
||||||
self.addEventListener('activate', function(e) {
|
self.addEventListener('activate', function(e) {
|
||||||
|
console.log('script activate')
|
||||||
self.registration.unregister()
|
self.registration.unregister()
|
||||||
.then(function() {
|
.then(function() {
|
||||||
return self.clients.matchAll();
|
return self.clients.matchAll();
|
||||||
|
Loading…
Reference in New Issue
Block a user