Add support for PWA

This commit is contained in:
2025-05-09 14:44:36 +02:00
parent 80977ee896
commit 6a557cc060
7 changed files with 3867 additions and 6 deletions

View File

@@ -9,3 +9,9 @@ createRoot(document.getElementById('root')!).render(
<App />
</StrictMode>,
)
if ('serviceWorker' in navigator) {
window.addEventListener('load', () => {
navigator.serviceWorker.register('/sw.js')
})
}