Skip to content

Commit

Permalink
Update pwabuilder-sw.js
Browse files Browse the repository at this point in the history
  • Loading branch information
wish13yt authored Jan 3, 2025
1 parent 6f6087d commit 7c96dfd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/pwabuilder-sw.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const CACHE = "pwabuilder-offline-page";
importScripts('https://storage.googleapis.com/workbox-cdn/releases/5.1.2/workbox-sw.js');

// TODO: replace the following with the correct offline fallback page i.e.: const offlineFallbackPage = "offline.html";
const offlineFallbackPage = "ToDo-replace-this-name.html";
const offlineFallbackPage = "index.html";

self.addEventListener("message", (event) => {
if (event.data && event.data.type === "SKIP_WAITING") {
Expand Down Expand Up @@ -51,4 +51,4 @@ self.addEventListener('fetch', (event) => {
}
})());
}
});
});

0 comments on commit 7c96dfd

Please sign in to comment.