From 64cd9c6316aa623d90426de6da2f79eaf6f675d8 Mon Sep 17 00:00:00 2001 From: Daniel Brain Date: Mon, 31 Jul 2017 19:43:17 -0700 Subject: [PATCH] Fix timeout for bridge --- src/bridge/child.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/bridge/child.js b/src/bridge/child.js index 99878148..8d7243a5 100644 --- a/src/bridge/child.js +++ b/src/bridge/child.js @@ -43,12 +43,12 @@ let awaitRemoteBridgeForWindow = weakMapMemoize((win : any) : ZalgoPromise clearTimeout(timeout); return resolve(frame); } - - setTimeout(() => { - clearInterval(interval); - return resolve(); - }, 2000); }, 100); + + timeout = setTimeout(() => { + clearInterval(interval); + return resolve(); + }, 2000); }); } catch (err) {