Fixed cache check for version 000000 and removed debug

This commit is contained in:
WolverinDEV 2019-02-23 15:19:04 +01:00
parent fd02eee9c1
commit ace25a04cc
2 changed files with 1 additions and 2 deletions

View file

@ -695,7 +695,7 @@ async function check_updates() {
const version = version_node.hasAttribute("value") ? version_node.getAttribute("value") : undefined;
if(!version) return undefined;
if(version == "unknown" || version.replace("0", "").length == 0)
if(version == "unknown" || version.replace(/0+/, "").length == 0)
return undefined;
return version;

View file

@ -513,7 +513,6 @@ class ClientEntry {
let icon: string = "";
let clicon: string = "";
console.error(this.properties.client_nickname + " - " + this.properties.client_type_exact + " - " + this.properties.client_type);
if(this.properties.client_type_exact == ClientType.CLIENT_QUERY) {
icon = "client-server_query";
console.log("Server query!");