From 31dcfac0a74a8b9dfbc5d0dd5778bb9e11c9a589 Mon Sep 17 00:00:00 2001 From: Do Duc Quan Date: Thu, 28 Mar 2024 14:19:54 +0700 Subject: [PATCH] Update service worker --- src/registerServiceWorker.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/registerServiceWorker.ts b/src/registerServiceWorker.ts index 69c7daa..4a6124b 100644 --- a/src/registerServiceWorker.ts +++ b/src/registerServiceWorker.ts @@ -16,7 +16,7 @@ export function registerServiceWorker(store: Store) { if ('serviceWorker' in navigator) { window.addEventListener('load', () => { - const url = '/service-worker2.js'; + const url = '/sw.js'; navigator.serviceWorker.register(url) .then(registration => {