chore: remove unused service worker cleanup

This commit is contained in:
richjohnrambo
2026-10-14 14:24:37 +08:00
parent 440e29975a
commit c1338985d4
2 changed files with 0 additions and 34 deletions
-10
View File
@@ -3,16 +3,6 @@ import { createRoot } from 'react-dom/client'
import './index.css'
import App from './App.tsx'
// This app has no service worker of its own, but browsers that visited this origin before the
// redesign/desktop-multicolumn rewrite may still have the old one registered (see
// public/service-worker.js) -- force an immediate update check rather than waiting for the
// browser's own lazy schedule, so it gets replaced by the kill switch right away.
if ('serviceWorker' in navigator) {
navigator.serviceWorker.getRegistrations().then(regs => {
regs.forEach(reg => reg.update())
})
}
createRoot(document.getElementById('root')!).render(
<StrictMode>
<App />