KEYCLOAK-500
Redundant condition in keycloak.js
This commit is contained in:
parent
91e29d9710
commit
80f4b668b2
1 changed files with 6 additions and 10 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue