This commit is contained in:
seb
2026-10-07 12:06:23 +02:00
parent 92d3d1f5ed
commit e4927f5d8a

View File

@@ -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(() => { });
}
});
},