Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
Re-enable idle timer for ledger timer visits
Browse files Browse the repository at this point in the history
It was added here originally:
#3650

But then removed here when things were still in progress:
dbc0796

It works fine though, so re-enabling it.

Fix #6497

Auditors: @bridiver
  • Loading branch information
bbondy committed Jan 2, 2017
1 parent 884c121 commit 432d060
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions app/extensions/brave/content/scripts/idleHandler.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// chrome.idle.setDetectionInterval(15*60)
// chrome.idle.onStateChanged.addListener((idleState) => {
// chrome.ipcRenderer.send('dispatch-action', JSON.stringify({
// actionType: 'app-idle-state-changed',
// idleState
// }))
// })
chrome.idle.setDetectionInterval(15 * 60)
chrome.idle.onStateChanged.addListener((idleState) => {
chrome.ipcRenderer.send('dispatch-action', JSON.stringify({
actionType: 'app-idle-state-changed',
idleState
}))
})

0 comments on commit 432d060

Please sign in to comment.