This commit is contained in:
parent
2c0b757c13
commit
9298776620
|
@ -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]) {
|
||||||
|
|
Loading…
Reference in New Issue