Minor edits (housekeeping)

This commit is contained in:
2019-06-19 10:55:01 +00:00
parent 21f272e9f0
commit dca8f74f25
2 changed files with 5 additions and 25 deletions

View File

@ -31,12 +31,6 @@ $(document).ready(function(){
'color': '#FFF'
});
if (data.CrossDomainLogin) {
console.log('CrossDomainLogin initiated');
// do ajax in parallel, show progress,
// redirect once all finished loading or timeout after $X ms
// origin domain should be exempted from timeout
// (because origin domain can/will be different from current domain --due to traefik design).
var cookieDomains = JSON.parse(data.CookieDomains);
var XHR = [];
cookieDomains.forEach(function(domain) {
@ -55,12 +49,15 @@ console.log('CrossDomainLogin initiated');
}));
});
$.when.apply($, XHR).then(function(){
$.each(arguments, function(_index, arg) {
console.log(JSON.stringify(arg));
$.each(arguments, function(_index, _arg) {
// Show progress somehow (maybe something like https://minicss.org/v2/progress)
});
});
}
// Finished (either succesfully or through timeout) cross-domain logins
// redirect once all finished loading or timeout after $X ms
// origin domain should be exempted from timeout
// (because origin domain can/will be different from current domain --due to traefik design).
//window.location.replace(data.Location);
}, 2250);
} else {