Fixed hostbanner position when its invisible

canary
WolverinDEV 2018-12-02 19:08:34 +01:00
parent 86eb36b1e4
commit 2ef764d34b
4 changed files with 12 additions and 8 deletions

View File

@ -3,6 +3,8 @@
- Fixed `[spacerX]` detection
- Added a hint if the channel encryption has been overridden by the server settings
- Enabled log grouping
- Improved permission popup performance
- Showing a better client version on client info
* **1.12.18**
- Added the possibility to navigate via arrow keys within the channel tree

View File

@ -64,7 +64,9 @@
overflow: hidden;
&:not(:disabled) {
&.disabled {
display: none;
margin-bottom: 5px;
}

View File

@ -343,11 +343,13 @@ class HandshakeHandler {
});
return;
}
const browser_name = (navigator.browserSpecs || {})["name"];
let data = {
//TODO variables!
client_nickname: this.name ? this.name : this.identity.name(),
client_platform: navigator.platform,
client_version: navigator.userAgent,
client_version: browser_name ? browser_name + " (" + navigator.userAgent + ")" : navigator.userAgent,
client_server_password: this.server_password,
client_browser_engine: navigator.product

View File

@ -133,16 +133,14 @@ class Hostbanner {
if(tag) {
tag.then(element => {
this.html_tag.empty();
this.html_tag.append(element);
this.html_tag.prop("disabled", false);
this.html_tag.append(element).removeClass("disabled");
}).catch(error => {
console.warn("Failed to load hostbanner: %o", error);
this.html_tag.empty();
this.html_tag.prop("disabled", true);
this.html_tag.empty().addClass("disabled");
})
} else {
this.html_tag.empty();
this.html_tag.prop("disabled", true);
this.html_tag.empty().addClass("disabled");
}
}