Support node12 by removing optional chaining

This commit is contained in:
Danielv123 committed 2021-11-20 12:03:46 +01:00
1 parent 0016c6271a
commit 6c80227103
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,
});
}