aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Stefan Malzner <stefan@adlk.io>2019-10-04 19:47:05 +0200
committerLibravatar Stefan Malzner <stefan@adlk.io>2019-10-04 19:47:05 +0200
commit2801cfbf6fad112e490f10b489d4e324fdf0b645 (patch)
treebb7daf4d18da251b62cec86c41699a3b2c660277
parentUpdate CHANGELOG.md (diff)
downloadferdium-app-2801cfbf6fad112e490f10b489d4e324fdf0b645.tar.gz
ferdium-app-2801cfbf6fad112e490f10b489d4e324fdf0b645.tar.zst
ferdium-app-2801cfbf6fad112e490f10b489d4e324fdf0b645.zip
fix app delay being skipped
-rw-r--r--src/features/delayApp/index.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/features/delayApp/index.js b/src/features/delayApp/index.js
index c0029873a..bd0395376 100644
--- a/src/features/delayApp/index.js
+++ b/src/features/delayApp/index.js
@@ -60,12 +60,12 @@ export default function init(stores) {
60 gaPage('/delayApp'); 60 gaPage('/delayApp');
61 gaEvent('DelayApp', 'show', 'Delay App Feature'); 61 gaEvent('DelayApp', 'show', 'Delay App Feature');
62 62
63 timeLastDelay = moment();
64 shownAfterLaunch = true;
65 63
66 setTimeout(() => { 64 setTimeout(() => {
67 debug('Resetting app delay'); 65 debug('Resetting app delay');
68 66
67 shownAfterLaunch = true;
68 timeLastDelay = moment();
69 setVisibility(false); 69 setVisibility(false);
70 }, config.delayDuration + 1000); // timer needs to be able to hit 0 70 }, config.delayDuration + 1000); // timer needs to be able to hit 0
71 } else { 71 } else {