Compare commits

...

2 Commits

2 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -1 +1 @@
0.1.0.93 0.1.0.94
+4 -2
View File
@@ -42,12 +42,14 @@ function scheduleUpdateChecks(
const onVisibilityChange = () => { const onVisibilityChange = () => {
if (document.visibilityState === 'visible') { if (document.visibilityState === 'visible') {
checkForUpdate() // Delay check on wake-up to allow the mobile network stack to stabilize
setTimeout(checkForUpdate, 2000)
} }
} }
const onOnline = () => { const onOnline = () => {
checkForUpdate() // Small delay to ensure connection is fully established
setTimeout(checkForUpdate, 500)
} }
document.addEventListener('visibilitychange', onVisibilityChange) document.addEventListener('visibilitychange', onVisibilityChange)