Merge pull request #131 from heavygale/ui-domain
hostname ≠ui-domain
Dieser Commit ist enthalten in:
Commit
6d5085dc8b
1 geänderte Dateien mit 16 neuen und 10 gelöschten Zeilen
|
@ -21,6 +21,9 @@ if (window.location.href.indexOf('/client/') >= 0) {
|
|||
if (getParameterByName('name')) {
|
||||
setCookie("name", getParameterByName('name'));
|
||||
}
|
||||
if (getParameterByName('ui')) {
|
||||
setCookie("ui", getParameterByName('ui'));
|
||||
}
|
||||
if (getParameterByName('port')) {
|
||||
setCookie("port", getParameterByName('port'));
|
||||
}
|
||||
|
@ -71,12 +74,15 @@ if (window.location.href.indexOf('/client') >= 0) {
|
|||
el.innerText = getCookie('host');
|
||||
});
|
||||
Array.prototype.forEach.call(document.getElementsByClassName('client_var_link'), function(el) {
|
||||
if (!getCookie('host')) {
|
||||
if (!getCookie('ui') && !getCookie('host')) {
|
||||
el.href = '#';
|
||||
} else if (getCookie('port') != '443') {
|
||||
el.href = 'https://' + getCookie('host') + ':' + getCookie('port') + '/' + el.getAttribute("href");
|
||||
} else {
|
||||
el.href = 'https://' + getCookie('host') + '/' + el.getAttribute("href");
|
||||
var ui_domain = getCookie('ui') ? getCookie('ui') : getCookie('host');
|
||||
if (getCookie('port') != '443') {
|
||||
el.href = 'https://' + ui_domain + ':' + getCookie('port') + '/' + el.getAttribute("href");
|
||||
} else {
|
||||
el.href = 'https://' + ui_domain + '/' + el.getAttribute("href");
|
||||
}
|
||||
}
|
||||
});
|
||||
Array.prototype.forEach.call(document.getElementsByClassName('client_var_email'), function(el) {
|
||||
|
|
Laden …
In neuem Issue referenzieren