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); window.history.replaceState({}, null, callback.newUrl);
processCallback(callback, initPromise); processCallback(callback, initPromise);
}).error(function (e) { }).error(function (e) {
throw 'Could not initialize iframe'; initPromise.setError();
}); });
} else if (initOptions) { } else if (initOptions) {
if (initOptions.token && initOptions.refreshToken) { if (initOptions.token && initOptions.refreshToken) {