diff options
author | Stefan Malzner <stefan@adlk.io> | 2019-10-04 19:47:05 +0200 |
---|---|---|
committer | Stefan Malzner <stefan@adlk.io> | 2019-10-04 19:47:05 +0200 |
commit | 2801cfbf6fad112e490f10b489d4e324fdf0b645 (patch) | |
tree | bb7daf4d18da251b62cec86c41699a3b2c660277 /src | |
parent | Update CHANGELOG.md (diff) | |
download | ferdium-app-2801cfbf6fad112e490f10b489d4e324fdf0b645.tar.gz ferdium-app-2801cfbf6fad112e490f10b489d4e324fdf0b645.tar.zst ferdium-app-2801cfbf6fad112e490f10b489d4e324fdf0b645.zip |
fix app delay being skipped
Diffstat (limited to 'src')
-rw-r--r-- | src/features/delayApp/index.js | 4 |
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 { |