KEYCLOAK-500

Redundant condition in keycloak.js
This commit is contained in:
Stian Thorgersen 2014-06-06 09:52:25 +01:00
parent 91e29d9710
commit 80f4b668b2

View file

@ -245,16 +245,12 @@ var Keycloak = function (config) {
}
if (loginIframe.enable) {
if (loginIframe.enable) {
var iframePromise = checkLoginIframe();
iframePromise.success(function() {
exec();
}).error(function() {
promise.setError();
})
} else {
promise.setSuccess(false);
}
var iframePromise = checkLoginIframe();
iframePromise.success(function() {
exec();
}).error(function() {
promise.setError();
});
} else {
exec();
}