Skip to content

Commit

Permalink
feat: async event handlers in service worker
Browse files Browse the repository at this point in the history
zugdev committed Oct 31, 2024
1 parent 30d7066 commit c459465
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions static/progressive-web-app.js
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@ const urlsToCache = [
];

// Install event (caches all necessary files)
self.addEventListener("install", (event) => {
self.addEventListener("install", async (event) => {
event.waitUntil(
(async () => {
try {
@@ -28,7 +28,7 @@ self.addEventListener("install", (event) => {
});

// Activate event (deletes old caches when updated)
self.addEventListener("activate", (event) => {
self.addEventListener("activate", async (event) => {
event.waitUntil(
(async () => {
try {

0 comments on commit c459465

Please sign in to comment.