aboutsummaryrefslogtreecommitdiffstats
path: root/src/features/delayApp
diff options
context:
space:
mode:
Diffstat (limited to 'src/features/delayApp')
-rw-r--r--src/features/delayApp/index.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/features/delayApp/index.js b/src/features/delayApp/index.js
index 3fc0f2570..92d2dcf6a 100644
--- a/src/features/delayApp/index.js
+++ b/src/features/delayApp/index.js
@@ -40,6 +40,11 @@ export default function init(stores) {
40 config.delayDuration = globalConfig.wait !== undefined ? globalConfig.wait : DEFAULT_FEATURES_CONFIG.needToWaitToProceedConfig.wait; 40 config.delayDuration = globalConfig.wait !== undefined ? globalConfig.wait : DEFAULT_FEATURES_CONFIG.needToWaitToProceedConfig.wait;
41 41
42 autorun(() => { 42 autorun(() => {
43 if (stores.services.all.length === 0) {
44 shownAfterLaunch = true;
45 return;
46 }
47
43 const diff = moment().diff(timeLastDelay); 48 const diff = moment().diff(timeLastDelay);
44 if ((stores.app.isFocused && diff >= config.delayOffset) || !shownAfterLaunch) { 49 if ((stores.app.isFocused && diff >= config.delayOffset) || !shownAfterLaunch) {
45 debug(`App will be delayed for ${config.delayDuration / 1000}s`); 50 debug(`App will be delayed for ${config.delayDuration / 1000}s`);