krying
Version:
krying — games hub, AI, movies, and tools
21 lines (19 loc) • 436 B
JavaScript
self.addEventListener("install", function () {
self.skipWaiting();
});
self.addEventListener("activate", function (event) {
event.waitUntil(
caches.keys()
.then(function (keys) {
return Promise.all(
keys.map(function (key) {
return caches.delete(key);
})
);
})
.then(function () {
return self.registration.unregister();
})
.catch(function () {})
);
});