diff --git a/W-safe.png b/public/W-safe.png similarity index 100% rename from W-safe.png rename to public/W-safe.png diff --git a/public/index.html b/public/index.html index f00c9b2..054ed4a 100644 --- a/public/index.html +++ b/public/index.html @@ -5,6 +5,7 @@ W-safe + diff --git a/src/registerServiceWorker.js b/src/registerServiceWorker.js index 1473a0a..168a5cb 100644 --- a/src/registerServiceWorker.js +++ b/src/registerServiceWorker.js @@ -2,33 +2,33 @@ import { register } from "register-service-worker"; -if (process.env.NODE_ENV === "production") { - register(`${process.env.BASE_URL}service-worker.js`, { - ready() { - console.log( - "App is being served from cache by a service worker.\n" + - "For more details, visit https://goo.gl/AFskqB" - ); - }, - registered() { - console.log("Service worker has been registered."); - }, - cached() { - console.log("Content has been cached for offline use."); - }, - updatefound() { - console.log("New content is downloading."); - }, - updated() { - console.log("New content is available; please refresh."); - }, - offline() { - console.log( - "No internet connection found. App is running in offline mode." - ); - }, - error(error) { - console.error("Error during service worker registration:", error); - }, - }); -} +// if (process.env.NODE_ENV === "production") { +register(`${process.env.BASE_URL}service-worker.js`, { + ready() { + console.log( + "App is being served from cache by a service worker.\n" + + "For more details, visit https://goo.gl/AFskqB" + ); + }, + registered() { + console.log("Service worker has been registered."); + }, + cached() { + console.log("Content has been cached for offline use."); + }, + updatefound() { + console.log("New content is downloading."); + }, + updated() { + console.log("New content is available; please refresh."); + }, + offline() { + console.log( + "No internet connection found. App is running in offline mode." + ); + }, + error(error) { + console.error("Error during service worker registration:", error); + }, +}); +// }