This commit is contained in:
nnduc
2026-10-24 14:03:52 +07:00
commit 4fe046de58
4790 changed files with 311146 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
/**
* Self-destruct all the old sw.js workers
*/
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))
});
});