This commit is contained in:
AJ ONeal 2017-11-24 00:50:26 +00:00
parent 2c0b757c13
commit 9298776620
1 changed files with 10 additions and 10 deletions

View File

@ -1055,16 +1055,16 @@
cleanup(); cleanup();
}; };
if (timeout) { if (timeout) {
tok = setTimeout(function () { tok = setTimeout(function () {
var err = new Error( var err = new Error(
"the '" + windowType + "' request did not complete within " + Math.round(timeout / 1000) + "s" "the '" + windowType + "' request did not complete within " + Math.round(timeout / 1000) + "s"
); );
err.code = "E_TIMEOUT"; err.code = "E_TIMEOUT";
reject(err); reject(err);
cleanup(); cleanup();
}, timeout); }, timeout);
} }
setTimeout(function () { setTimeout(function () {
if (!OAUTH3._browser._frames[state]) { if (!OAUTH3._browser._frames[state]) {