pwa compatible
All checks were successful
build-and-deploy / build (push) Successful in 11s
build-and-deploy / deploy (push) Successful in 15s

This commit is contained in:
2025-09-26 21:20:34 -06:00
parent ef311916b3
commit bf941aceb3
13 changed files with 109 additions and 4 deletions

View File

@@ -4,3 +4,10 @@ import './styles.css';
const app = createApp(App);
app.mount('#app');
// Register Service Worker for PWA (in production)
if ('serviceWorker' in navigator) {
window.addEventListener('load', () => {
navigator.serviceWorker.register('/sw.js').catch(() => {});
});
}