mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-19 23:33:13 +09:00
Merge pull request #433 from Danielv123/fix-node12-support
Support node12 by removing optional chaining
This commit is contained in:
1 file changed
+1
-1
@@ -262,7 +262,7 @@ class Instance extends libLink.Link {
|
|||||||
libLink.messages.instanceStatusChanged.send(this, {
|
libLink.messages.instanceStatusChanged.send(this, {
|
||||||
instance_id: this.id,
|
instance_id: this.id,
|
||||||
status,
|
status,
|
||||||
game_port: this.server?.gamePort || this.config.get("factorio.game_port") || null,
|
game_port: this.server && this.server.gamePort || this.config.get("factorio.game_port") || null,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user