summaryrefslogtreecommitdiff
path: root/scripts/client.js
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/client.js')
-rw-r--r--scripts/client.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/client.js b/scripts/client.js
index dba8630..e158cef 100644
--- a/scripts/client.js
+++ b/scripts/client.js
@@ -115,6 +115,8 @@ class Client{
this.gameOptions.cleanup();
this.settings = new Settings(m.data.user);
+ this.settings.addEventListener("change", (() => {this.socket.send("options", this.settings.getSettings())}).bind(this));
+
this.gameOptions = new Settings(m.data.game);
this.gameOptions.putSettings(this.lobby.top.newGame);