Icone app

This commit is contained in:
2026-05-01 19:41:41 +02:00
parent af07b6f266
commit 2c6ecf574c
10 changed files with 85 additions and 19 deletions

View File

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