aboutsummaryrefslogtreecommitdiffstats
path: root/src/stores
diff options
context:
space:
mode:
authorLibravatar Stefan Malzner <stefan@adlk.io>2019-10-21 13:29:55 +0200
committerLibravatar Stefan Malzner <stefan@adlk.io>2019-10-21 13:29:55 +0200
commitbd4c19826e936667962f410c9957b6259ebe8c06 (patch)
tree96d877016b8cb251d2355a879e9dcdd0f3e640e1 /src/stores
parentRevert "test to reload app after resume" (diff)
downloadferdium-app-bd4c19826e936667962f410c9957b6259ebe8c06.tar.gz
ferdium-app-bd4c19826e936667962f410c9957b6259ebe8c06.tar.zst
ferdium-app-bd4c19826e936667962f410c9957b6259ebe8c06.zip
reload app after sleep with 2s waiting time
Diffstat (limited to 'src/stores')
-rw-r--r--src/stores/AppStore.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/stores/AppStore.js b/src/stores/AppStore.js
index ca5cad836..0a6309092 100644
--- a/src/stores/AppStore.js
+++ b/src/stores/AppStore.js
@@ -207,10 +207,9 @@ export default class AppStore extends Store {
207 if (this.timeSuspensionStart.add(10, 'm').isBefore(moment())) { 207 if (this.timeSuspensionStart.add(10, 'm').isBefore(moment())) {
208 debug('Reloading services, user info and features'); 208 debug('Reloading services, user info and features');
209 209
210 this.actions.service.reloadAll(); 210 setTimeout(() => {
211 211 window.location.reload();
212 this.stores.user.getUserInfoRequest.invalidate({ immediately: true }); 212 }, ms('2s'));
213 this.stores.features.featuresRequest.invalidate({ immediately: true });
214 213
215 statsEvent('resumed-app'); 214 statsEvent('resumed-app');
216 } 215 }