diff --git a/js/libs/keycloak-js/src/keycloak.js b/js/libs/keycloak-js/src/keycloak.js index f6829b3f41..d5e47daa4a 100755 --- a/js/libs/keycloak-js/src/keycloak.js +++ b/js/libs/keycloak-js/src/keycloak.js @@ -39,13 +39,6 @@ function Keycloak (config) { kc.didInitialize = false; - var scripts = document.getElementsByTagName('script'); - for (var i = 0; i < scripts.length; i++) { - if ((scripts[i].src.indexOf('keycloak.js') !== -1 || scripts[i].src.indexOf('keycloak.min.js') !== -1) && scripts[i].src.indexOf('version=') !== -1) { - kc.iframeVersion = scripts[i].src.substring(scripts[i].src.indexOf('version=') + 8).split('&')[0]; - } - } - var useNonce = true; var logInfo = createLogger(console.info); var logWarn = createLogger(console.warn); @@ -847,18 +840,10 @@ function Keycloak (config) { return getRealmUrl() + '/protocol/openid-connect/logout'; }, checkSessionIframe: function() { - var src = getRealmUrl() + '/protocol/openid-connect/login-status-iframe.html'; - if (kc.iframeVersion) { - src = src + '?version=' + kc.iframeVersion; - } - return src; + return getRealmUrl() + '/protocol/openid-connect/login-status-iframe.html'; }, thirdPartyCookiesIframe: function() { - var src = getRealmUrl() + '/protocol/openid-connect/3p-cookies/step1.html'; - if (kc.iframeVersion) { - src = src + '?version=' + kc.iframeVersion; - } - return src; + return getRealmUrl() + '/protocol/openid-connect/3p-cookies/step1.html'; }, register: function() { return getRealmUrl() + '/protocol/openid-connect/registrations';