KEYCLOAK-8016: js sometimes loaded out of order
This commit is contained in:
1 parent
99a16dcc1f
commit
e85a396572
1 file changed
+9
-7
@@ -107,14 +107,16 @@
|
||||
document.head.appendChild(script);
|
||||
};
|
||||
keycloak.init({onLoad: 'check-sso'}).success(function(authenticated) {
|
||||
loadjs("/node_modules/core-js/client/shim.min.js", function(){
|
||||
loadjs("/node_modules/zone.js/dist/zone.min.js");
|
||||
loadjs("/node_modules/systemjs/dist/system.src.js", function() {
|
||||
loadjs("/systemjs.config.js");
|
||||
System.import('${resourceUrl}/main.js').catch(function (err) {
|
||||
console.error(err);
|
||||
loadjs("/node_modules/core-js/client/shim.min.js", function() {
|
||||
loadjs("/node_modules/zone.js/dist/zone.min.js", function() {
|
||||
loadjs("/node_modules/systemjs/dist/system.src.js", function() {
|
||||
loadjs("/systemjs.config.js", function() {
|
||||
System.import('${resourceUrl}/main.js').catch(function (err) {
|
||||
console.error(err);
|
||||
});
|
||||
if (!keycloak.authenticated) document.getElementById("signInButton").style.visibility='visible';
|
||||
});
|
||||
});
|
||||
if (!keycloak.authenticated) document.getElementById("signInButton").style.visibility='visible';
|
||||
});
|
||||
});
|
||||
}).error(function() {
|
||||
|
||||
Reference in new issue
Block a user