Skip to content

Commit

Permalink
Remove that crap
Browse files Browse the repository at this point in the history
  • Loading branch information
veloce committed Jun 17, 2018
1 parent f0c84a3 commit a5407a1
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/utils/sleep.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,7 @@ export function allowSleepAgain() {
cancelTimer()
cancelTimer = undefined
}
// workaround for nasty bug (Uncaught RangeError: Maximum call stack size exceeded)
// on older webviews
// TODO investigate this
setTimeout(() => {
window.plugins.insomnia.allowSleepAgain()
})
window.plugins.insomnia.allowSleepAgain()
}

function idleTimer(delay: number, onIdle: () => void, onWakeUp: () => void): () => void {
Expand Down

0 comments on commit a5407a1

Please sign in to comment.