Browse Source

Bugfixes autolock Idler

gre-patch-1
Gaëtan Renaudeau 6 years ago
parent
commit
63c2505356
No known key found for this signature in database GPG Key ID: 7B66B85F042E5451
  1. 8
      src/components/Idler.js

8
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
}

Loading…
Cancel
Save