todo preparado como pwa con branding correcto
This commit is contained in:
@@ -6,4 +6,13 @@ const app = createApp(App);
|
||||
|
||||
app.use(router);
|
||||
|
||||
app.mount('#app');
|
||||
app.mount('#app');
|
||||
|
||||
// Registrar Service Worker en producción para PWA
|
||||
if ('serviceWorker' in navigator && import.meta.env.PROD) {
|
||||
window.addEventListener('load', () => {
|
||||
navigator.serviceWorker.register('/sw.js').catch(() => {
|
||||
// no-op: registro del SW falló
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user