From ffd768254054ec6b11270d48c91ffc1d20c63f4f Mon Sep 17 00:00:00 2001 From: Thibault Duplessis Date: Fri, 22 Nov 2019 10:53:48 -0600 Subject: [PATCH] Revert "window.setTimeout" This reverts commit 1a96f24f20902a061697f0741f2a2b87d3769b60. --- ui/round/src/socket.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/round/src/socket.ts b/ui/round/src/socket.ts index ccf2231a05..e121510428 100644 --- a/ui/round/src/socket.ts +++ b/ui/round/src/socket.ts @@ -46,7 +46,7 @@ function backoff(delay: number, factor: number, callback: (...args: any[]) => vo if (timer) clearTimeout(timer); if (elapsed > delay) exec(); - else timer = window.setTimeout(exec, delay - elapsed); + else timer = setTimeout(exec, delay - elapsed); } }