From 41fbc889752c379ede0f356888876d67c93756e5 Mon Sep 17 00:00:00 2001 From: Rizky Date: Sat, 27 Jul 2024 15:17:29 +0700 Subject: [PATCH] fix --- app/web/src/sworker-boot.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/web/src/sworker-boot.tsx b/app/web/src/sworker-boot.tsx index 641e3573..87765e9b 100644 --- a/app/web/src/sworker-boot.tsx +++ b/app/web/src/sworker-boot.tsx @@ -5,7 +5,7 @@ import { isLocalhost } from "./utils/ui/is-localhost"; export const sworkerRegister = async (react: { root: null | ReactRoot }) => { if (navigator.serviceWorker) { - if (true || !isLocalhost()) { + if (!isLocalhost()) { const sw = await registerServiceWorker(); const cacheCurrentPage = () => { const swController = navigator.serviceWorker.controller;