diff --git a/index.html b/index.html index 8340326f..f7b197cb 100644 --- a/index.html +++ b/index.html @@ -137,11 +137,4 @@
- diff --git a/src/common/components/ui/inputs/TextInput/TextInput.tsx b/src/common/components/ui/inputs/TextInput/TextInput.tsx index 9c0ccfee..70305fb2 100644 --- a/src/common/components/ui/inputs/TextInput/TextInput.tsx +++ b/src/common/components/ui/inputs/TextInput/TextInput.tsx @@ -41,7 +41,6 @@ export function TextInput({ }; const handleReset = () => { - console.log('here'); setValue(''); inputRef.current?.focus(); onChange && onChange(''); diff --git a/src/common/hooks/useUpdate.tsx b/src/common/hooks/useUpdate.tsx index f1d2acc1..c6bac05b 100644 --- a/src/common/hooks/useUpdate.tsx +++ b/src/common/hooks/useUpdate.tsx @@ -8,10 +8,8 @@ export function useUpdate() { const { updateServiceWorker } = useRegisterSW({ onRegistered: (r) => { if (!r) return; - r.update(); setInterval(() => { - console.log('interval'); r.update(); }, UPDATE_INTERVAL); }, diff --git a/src/my-sw.ts b/src/my-sw.ts index 753c2e06..afcf39bf 100644 --- a/src/my-sw.ts +++ b/src/my-sw.ts @@ -6,8 +6,4 @@ cleanupOutdatedCaches(); precacheAndRoute(self.__WB_MANIFEST); -self.addEventListener('message', (event) => { - if (event.data && event.data.type === 'SKIP_WAITING') { - self.skipWaiting(); - } -}); +self.skipWaiting(); diff --git a/vite.config.js b/vite.config.js index 19a5ee04..7412bff3 100644 --- a/vite.config.js +++ b/vite.config.js @@ -19,6 +19,7 @@ export default defineConfig({ svgr(), VitePWA({ registerType: 'prompt', + injectRegister: 'script', strategies: 'injectManifest', injectManifest: { globPatterns: ['**/*.{js,css,html,ico,png,svg,woff2,otf}'],