fix: exportacion directa sin popup-blocker, enlace window global, cache buster v12.2 y carga masiva robusta

This commit is contained in:
unknown
2026-10-07 16:08:03 -06:00
parent ae5377f0e6
commit b85d0ca019
4 changed files with 161 additions and 35 deletions
+2 -1
View File
@@ -90,7 +90,8 @@ document.addEventListener('DOMContentLoaded', async () => {
// Registrar Service Worker para Notificaciones PWA
if ('serviceWorker' in navigator) {
navigator.serviceWorker.register('/sw.js?v=8.5').then(() => {
navigator.serviceWorker.register('/sw.js?v=12.2').then((reg) => {
reg.update().catch(() => {});
if ('Notification' in window && Notification.permission === 'granted') {
subscribeDeviceToWebPush().catch(() => {});
}