diff options
author | 2017-12-24 22:15:28 +0100 | |
---|---|---|
committer | 2017-12-24 22:15:28 +0100 | |
commit | d0b67cbd2dcb10395a22733545ede1d1abaf993c (patch) | |
tree | 4e9231b7880b481e7dafc7bf1dd98639340f4206 /src/stores | |
parent | Completely remove miner (diff) | |
download | ferdium-app-d0b67cbd2dcb10395a22733545ede1d1abaf993c.tar.gz ferdium-app-d0b67cbd2dcb10395a22733545ede1d1abaf993c.tar.zst ferdium-app-d0b67cbd2dcb10395a22733545ede1d1abaf993c.zip |
Remove idle timer dependency
Diffstat (limited to 'src/stores')
-rw-r--r-- | src/stores/AppStore.js | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/stores/AppStore.js b/src/stores/AppStore.js index 71776b468..3eddff5ed 100644 --- a/src/stores/AppStore.js +++ b/src/stores/AppStore.js | |||
@@ -3,7 +3,6 @@ import { action, observable } from 'mobx'; | |||
3 | import moment from 'moment'; | 3 | import moment from 'moment'; |
4 | import key from 'keymaster'; | 4 | import key from 'keymaster'; |
5 | import { getDoNotDisturb } from '@meetfranz/electron-notification-state'; | 5 | import { getDoNotDisturb } from '@meetfranz/electron-notification-state'; |
6 | import idleTimer from '@paulcbetts/system-idle-time'; | ||
7 | import AutoLaunch from 'auto-launch'; | 6 | import AutoLaunch from 'auto-launch'; |
8 | 7 | ||
9 | import Store from './lib/Store'; | 8 | import Store from './lib/Store'; |
@@ -116,11 +115,6 @@ export default class AppStore extends Store { | |||
116 | this.stores.router.push(data.url); | 115 | this.stores.router.push(data.url); |
117 | }); | 116 | }); |
118 | 117 | ||
119 | // Check system idle time every minute | ||
120 | setInterval(() => { | ||
121 | this.idleTime = idleTimer.getIdleTime(); | ||
122 | }, 60000); | ||
123 | |||
124 | // Reload all services after a healthy nap | 118 | // Reload all services after a healthy nap |
125 | powerMonitor.on('resume', () => { | 119 | powerMonitor.on('resume', () => { |
126 | setTimeout(window.location.reload, 5000); | 120 | setTimeout(window.location.reload, 5000); |