Fix for name field not working

This commit is contained in:
Skylar Sadlier 2019-12-09 18:13:49 -07:00
parent a2a4f47604
commit 36afa961a3

View File

@ -13,11 +13,15 @@
outputs:1,
icon: "icons/server.png",
label: function() {
if(this.name){
return this.name;
}
if(this.host) {
return (this.server_type ? this.server_type : 'Query') + ': ' + this.host + (this.port ? ":" + this.port : '');
}
return this.name || 'Query Game Server';
return 'Query Game Server';
}
});
</script>