diff options
author | 2017-12-24 22:15:28 +0100 | |
---|---|---|
committer | 2017-12-24 22:15:28 +0100 | |
commit | d0b67cbd2dcb10395a22733545ede1d1abaf993c (patch) | |
tree | 4e9231b7880b481e7dafc7bf1dd98639340f4206 | |
parent | Completely remove miner (diff) | |
download | ferdium-app-d0b67cbd2dcb10395a22733545ede1d1abaf993c.tar.gz ferdium-app-d0b67cbd2dcb10395a22733545ede1d1abaf993c.tar.zst ferdium-app-d0b67cbd2dcb10395a22733545ede1d1abaf993c.zip |
Remove idle timer dependency
-rw-r--r-- | package.json | 1 | ||||
-rw-r--r-- | src/stores/AppStore.js | 6 | ||||
-rw-r--r-- | yarn.lock | 11 |
3 files changed, 0 insertions, 18 deletions
diff --git a/package.json b/package.json index 9c111d336..bf8c4fec0 100644 --- a/package.json +++ b/package.json | |||
@@ -28,7 +28,6 @@ | |||
28 | "license": "Apache-2.0", | 28 | "license": "Apache-2.0", |
29 | "dependencies": { | 29 | "dependencies": { |
30 | "@meetfranz/electron-notification-state": "^1.0.0", | 30 | "@meetfranz/electron-notification-state": "^1.0.0", |
31 | "@paulcbetts/system-idle-time": "^1.0.4", | ||
32 | "address-rfc2822": "^2.0.1", | 31 | "address-rfc2822": "^2.0.1", |
33 | "auto-launch": "https://github.com/meetfranz/node-auto-launch.git", | 32 | "auto-launch": "https://github.com/meetfranz/node-auto-launch.git", |
34 | "babel-polyfill": "^6.23.0", | 33 | "babel-polyfill": "^6.23.0", |
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); |
@@ -45,13 +45,6 @@ | |||
45 | dependencies: | 45 | dependencies: |
46 | nan "^2.0.0" | 46 | nan "^2.0.0" |
47 | 47 | ||
48 | "@paulcbetts/system-idle-time@^1.0.4": | ||
49 | version "1.0.4" | ||
50 | resolved "https://registry.yarnpkg.com/@paulcbetts/system-idle-time/-/system-idle-time-1.0.4.tgz#17b275530176d72695646380b13b79724288b1c6" | ||
51 | dependencies: | ||
52 | bindings "~1.2.1" | ||
53 | nan "^2.0.0" | ||
54 | |||
55 | "@types/node@^7.0.18": | 48 | "@types/node@^7.0.18": |
56 | version "7.0.43" | 49 | version "7.0.43" |
57 | resolved "https://registry.yarnpkg.com/@types/node/-/node-7.0.43.tgz#a187e08495a075f200ca946079c914e1a5fe962c" | 50 | resolved "https://registry.yarnpkg.com/@types/node/-/node-7.0.43.tgz#a187e08495a075f200ca946079c914e1a5fe962c" |
@@ -1180,10 +1173,6 @@ bindings@^1.2.1, bindings@^1.3.0: | |||
1180 | version "1.3.0" | 1173 | version "1.3.0" |
1181 | resolved "https://registry.yarnpkg.com/bindings/-/bindings-1.3.0.tgz#b346f6ecf6a95f5a815c5839fc7cdb22502f1ed7" | 1174 | resolved "https://registry.yarnpkg.com/bindings/-/bindings-1.3.0.tgz#b346f6ecf6a95f5a815c5839fc7cdb22502f1ed7" |
1182 | 1175 | ||
1183 | bindings@~1.2.1: | ||
1184 | version "1.2.1" | ||
1185 | resolved "https://registry.yarnpkg.com/bindings/-/bindings-1.2.1.tgz#14ad6113812d2d37d72e67b4cacb4bb726505f11" | ||
1186 | |||
1187 | bl@~0.9.4: | 1176 | bl@~0.9.4: |
1188 | version "0.9.5" | 1177 | version "0.9.5" |
1189 | resolved "https://registry.yarnpkg.com/bl/-/bl-0.9.5.tgz#c06b797af085ea00bc527afc8efcf11de2232054" | 1178 | resolved "https://registry.yarnpkg.com/bl/-/bl-0.9.5.tgz#c06b797af085ea00bc527afc8efcf11de2232054" |