aboutsummaryrefslogtreecommitdiffstats
path: root/src/stores/AppStore.ts
diff options
context:
space:
mode:
authorLibravatar Vijay A <vraravam@users.noreply.github.com>2023-05-24 06:57:50 +0530
committerLibravatar Vijay Aravamudhan <vraravam@users.noreply.github.com>2023-05-24 16:40:43 +0530
commite245b4fa229bee1e2ab97fcb42de3831b8bdbe5b (patch)
treed684777b3fde5470c9f99304a9f022422ffb8045 /src/stores/AppStore.ts
parent6.3.0-nightly.9 [skip ci] (diff)
downloadferdium-app-e245b4fa229bee1e2ab97fcb42de3831b8bdbe5b.tar.gz
ferdium-app-e245b4fa229bee1e2ab97fcb42de3831b8bdbe5b.tar.zst
ferdium-app-e245b4fa229bee1e2ab97fcb42de3831b8bdbe5b.zip
Upgrade npm modules
Diffstat (limited to 'src/stores/AppStore.ts')
-rw-r--r--src/stores/AppStore.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/stores/AppStore.ts b/src/stores/AppStore.ts
index 02d616241..18b38799e 100644
--- a/src/stores/AppStore.ts
+++ b/src/stores/AppStore.ts
@@ -529,14 +529,14 @@ export default class AppStore extends TypedStore {
529 529
530 // Reactions 530 // Reactions
531 _offlineCheck() { 531 _offlineCheck() {
532 if (!this.isOnline) { 532 if (this.isOnline) {
533 this.timeOfflineStart = moment();
534 } else {
535 const deltaTime = moment().diff(this.timeOfflineStart); 533 const deltaTime = moment().diff(this.timeOfflineStart);
536 534
537 if (deltaTime > ms('30m')) { 535 if (deltaTime > ms('30m')) {
538 this.actions.service.reloadAll(); 536 this.actions.service.reloadAll();
539 } 537 }
538 } else {
539 this.timeOfflineStart = moment();
540 } 540 }
541 } 541 }
542 542