keycloak-aplcache

Details

diff --git a/integration/js/src/main/resources/keycloak.js b/integration/js/src/main/resources/keycloak.js
index 4cf7a51..ef3af40 100755
--- a/integration/js/src/main/resources/keycloak.js
+++ b/integration/js/src/main/resources/keycloak.js
@@ -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();
         }