From 9fc960a75857ccc0197cf28becb224833918794f Mon Sep 17 00:00:00 2001 From: adueck Date: Thu, 15 Aug 2024 09:41:55 -0400 Subject: [PATCH] try again --- website/src/serviceWorkerRegistration.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/website/src/serviceWorkerRegistration.ts b/website/src/serviceWorkerRegistration.ts index 840563a..392e052 100644 --- a/website/src/serviceWorkerRegistration.ts +++ b/website/src/serviceWorkerRegistration.ts @@ -26,7 +26,9 @@ type Config = { }; export function register(config?: Config) { - if (process.env.NODE_ENV === "production" && "serviceWorker" in navigator) { + if ( + /* process.env.NODE_ENV === "production" */ "serviceWorker" in navigator + ) { // The URL constructor is available in all browsers that support SW. const publicUrl = new URL( "https://dictionary.lingdocs.com",