fix: exportacion directa sin popup-blocker, enlace window global, cache buster v12.2 y carga masiva robusta
This commit is contained in:
+2
-1
@@ -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(() => {});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user