Improved fix for #30
This commit is contained in:
@@ -119,7 +119,8 @@ class nodeObject {
|
|||||||
this.port = _port;
|
this.port = _port;
|
||||||
this.location = _location;
|
this.location = _location;
|
||||||
if (_nearbySystems && Array.isArray(_nearbySystems)) this.nearbySystems = _nearbySystems;
|
if (_nearbySystems && Array.isArray(_nearbySystems)) this.nearbySystems = _nearbySystems;
|
||||||
else this.nearbySystems = Object.keys(_nearbySystems);
|
else if (_nearbySystems) this.nearbySystems = Object.keys(_nearbySystems);
|
||||||
|
else this.nearbySystems = _nearbySystems;
|
||||||
this.online = _online;
|
this.online = _online;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user