From 9298776620e570d7f792277127d09e55dd5cec58 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Fri, 24 Nov 2017 00:50:26 +0000 Subject: [PATCH] ws --- oauth3.core.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/oauth3.core.js b/oauth3.core.js index 4d3d7d9..0628df9 100644 --- a/oauth3.core.js +++ b/oauth3.core.js @@ -1055,16 +1055,16 @@ cleanup(); }; - if (timeout) { - tok = setTimeout(function () { - var err = new Error( - "the '" + windowType + "' request did not complete within " + Math.round(timeout / 1000) + "s" - ); - err.code = "E_TIMEOUT"; - reject(err); - cleanup(); - }, timeout); - } + if (timeout) { + tok = setTimeout(function () { + var err = new Error( + "the '" + windowType + "' request did not complete within " + Math.round(timeout / 1000) + "s" + ); + err.code = "E_TIMEOUT"; + reject(err); + cleanup(); + }, timeout); + } setTimeout(function () { if (!OAUTH3._browser._frames[state]) {