mirror of
https://github.com/skylord123/node-red-contrib-gamedig.git
synced 2025-04-10 08:03:08 -06:00
Fix for name field not working
This commit is contained in:
parent
a2a4f47604
commit
36afa961a3
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user