set error instead of throw

This commit is contained in:
Samuel Mendenhall 2017-12-01 08:19:51 -05:00 committed by Stian Thorgersen
parent ca324c29e8
commit d69fe27cf9

View file

@ -163,7 +163,7 @@
window.history.replaceState({}, null, callback.newUrl);
processCallback(callback, initPromise);
}).error(function (e) {
throw 'Could not initialize iframe';
initPromise.setError();
});
} else if (initOptions) {
if (initOptions.token && initOptions.refreshToken) {