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]) {