u
This commit is contained in:
@@ -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(() => { });
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user