Merge pull request #3238 from mwcz/always-resolve-init-promise

always resolve keycloak.init's promise
This commit is contained in:
Stian Thorgersen 2016-09-20 09:29:04 +02:00 committed by GitHub
commit 0addfeaa75

View file

@ -166,6 +166,8 @@
kc.onAuthError && kc.onAuthError();
if (initOptions.onLoad) {
onLoad();
} else {
initPromise.setError();
}
});
});
@ -177,6 +179,8 @@
kc.onAuthError && kc.onAuthError();
if (initOptions.onLoad) {
onLoad();
} else {
initPromise.setError();
}
});
}