This commit is contained in:
Rizky 2024-07-27 15:17:29 +07:00
parent 98e3ee3b8d
commit 41fbc88975
1 changed files with 1 additions and 1 deletions

View File

@ -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;