aboutsummaryrefslogtreecommitdiffstats
path: root/src/features/delayApp
diff options
context:
space:
mode:
authorLibravatar Stefan Malzner <stefan@adlk.io>2019-01-08 09:46:19 +0100
committerLibravatar Stefan Malzner <stefan@adlk.io>2019-01-08 09:46:19 +0100
commitd7c507bb24d42a373a6b68f157170dd28031674a (patch)
treeedb611b813ecae856eccda97c5da417ac16f1f3a /src/features/delayApp
parentAdd analytics events for app delay (diff)
downloadferdium-app-d7c507bb24d42a373a6b68f157170dd28031674a.tar.gz
ferdium-app-d7c507bb24d42a373a6b68f157170dd28031674a.tar.zst
ferdium-app-d7c507bb24d42a373a6b68f157170dd28031674a.zip
Skip for premium users
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 3412ad5d1..d7e8252f3 100644
--- a/src/features/delayApp/index.js
+++ b/src/features/delayApp/index.js
@@ -41,6 +41,11 @@ export default function init(stores) {
41 config.delayDuration = globalConfig.wait !== undefined ? globalConfig.wait : DEFAULT_FEATURES_CONFIG.needToWaitToProceedConfig.wait; 41 config.delayDuration = globalConfig.wait !== undefined ? globalConfig.wait : DEFAULT_FEATURES_CONFIG.needToWaitToProceedConfig.wait;
42 42
43 autorun(() => { 43 autorun(() => {
44 if (stores.user.data.isPremium) {
45 debug('Skipping app delay as user is Premium Supporter');
46 return;
47 }
48
44 if (stores.services.all.length === 0) { 49 if (stores.services.all.length === 0) {
45 shownAfterLaunch = true; 50 shownAfterLaunch = true;
46 return; 51 return;