diff --git a/src/utils/sleep.ts b/src/utils/sleep.ts index 3c7a85da5e..3619635e95 100644 --- a/src/utils/sleep.ts +++ b/src/utils/sleep.ts @@ -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 {