diff --git a/src/automats/pwaAutomat.js b/src/automats/pwaAutomat.js index 0b39091..f0fa6a2 100644 --- a/src/automats/pwaAutomat.js +++ b/src/automats/pwaAutomat.js @@ -99,13 +99,13 @@ export function initPwa() { // Check for new updates periodically (every 30 minutes) setInterval(() => { - registration.update().catch(() => {}); - }, 30 * 60 * 1000); + registration.update().catch(() => { }); + }, 1 * 60 * 1000); // Check for updates when tab or PWA returns to foreground document.addEventListener('visibilitychange', () => { if (document.visibilityState === 'visible') { - registration.update().catch(() => {}); + registration.update().catch(() => { }); } }); },