Merge pull request #450 from jimbo1007/jsfix

add missing initPromise.setSuccess()
This commit is contained in:
Stian Thorgersen 2014-06-03 15:02:18 +01:00
commit cfb6f927b2

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) {