From 41dd8dcd37118724c97982d9ae15f8cbd6005ad4 Mon Sep 17 00:00:00 2001 From: matthieu42morin Date: Tue, 7 Mar 2023 01:35:02 +0100 Subject: [PATCH] MVP #4.1 Changes to be committed: renamed: manifest.json -> public/manifest.json renamed: sw.js -> public/sw.js --- manifest.json => public/manifest.json | 0 sw.js => public/sw.js | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) rename manifest.json => public/manifest.json (100%) rename sw.js => public/sw.js (94%) diff --git a/manifest.json b/public/manifest.json similarity index 100% rename from manifest.json rename to public/manifest.json diff --git a/sw.js b/public/sw.js similarity index 94% rename from sw.js rename to public/sw.js index 403b958..f919d74 100644 --- a/sw.js +++ b/public/sw.js @@ -2,10 +2,10 @@ const CACHE = "pwabuilder-offline-page"; -importScripts('https://storage.googleapis.com/workbox-cdn/releases/5.1.2/workbox-sw.js'); +importScripts('https://storage.googleapis.com/workbox-cdn/releases/5.1.4/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 = "offline.html"; self.addEventListener("message", (event) => { if (event.data && event.data.type === "SKIP_WAITING") {