Merge pull request #433 from Danielv123/fix-node12-support

Support node12 by removing optional chaining
This commit is contained in:
Daniel authored and GitHub committed 2021-11-20 12:17:34 +01:00
commit fcdbf59f7a
1 file changed
+1 -1
+1 -1
View File
@@ -262,7 +262,7 @@ class Instance extends libLink.Link {
libLink.messages.instanceStatusChanged.send(this, {
instance_id: this.id,
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,
});
}