add missing initPromise.setSuccess()

This commit is contained in:
unknown 2014-06-03 09:28:01 -04:00
parent ba13cbe004
commit 8d33894989

View file

@ -57,6 +57,7 @@ var Keycloak = function (config) {
} else if (initOptions) {
if (initOptions.token || initOptions.refreshToken) {
setToken(initOptions.token, initOptions.refreshToken);
initPromise.setSuccess();
} else if (initOptions.onLoad) {
var options = {};
switch (initOptions.onLoad) {