Skip to content

Commit

Permalink
added install event
Browse files Browse the repository at this point in the history
  • Loading branch information
sergesoroka committed Oct 8, 2024
1 parent 15ac64f commit d172715
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions public/serviceWorker.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
self.addEventListener("install", (event) => {
self.skipWaiting();
});

self.addEventListener("activate", (event) => {
event.waitUntil(self.clients.claim());
console.log("ServiceWorker.js activated");
Expand Down

0 comments on commit d172715

Please sign in to comment.