Gaëtan Renaudeau
6 years ago
No known key found for this signature in database
GPG Key ID: 7B66B85F042E5451
1 changed files with
4 additions and
4 deletions
-
src/components/Idler.js
|
|
@ -40,6 +40,10 @@ class Idler extends PureComponent<Props> { |
|
|
|
|
|
|
|
lastAction: number = -1 |
|
|
|
|
|
|
|
idleTimeHandler = () => { |
|
|
|
this.lastAction = Date.now() |
|
|
|
} |
|
|
|
|
|
|
|
debounceOnChange = debounce(this.idleTimeHandler, 1000, { maxWait: 1000, leading: true }) |
|
|
|
|
|
|
|
checkForAutoLock = _ => { |
|
|
@ -51,10 +55,6 @@ class Idler extends PureComponent<Props> { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
idleTimeHandler = _ => { |
|
|
|
this.lastAction = Date.now() |
|
|
|
} |
|
|
|
|
|
|
|
render() { |
|
|
|
return null |
|
|
|
} |
|
|
|