summaryrefslogtreecommitdiff
path: root/scripts/client.js
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/client.js')
-rw-r--r--scripts/client.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/client.js b/scripts/client.js
index d5a9616..f030859 100644
--- a/scripts/client.js
+++ b/scripts/client.js
@@ -57,9 +57,8 @@ class Client{
this.lobby = new Lobby(document.getElementsByClassName("lobby")[0], this.socket);
this.lobby.setState("Connecting", "loading", this.socket.server);
-
- this.drag = new MultiDrag();
+ this.drag = new MultiDrag(document.getElementsByTagName("drag")[0]);
this.table = new Table(document.getElementsByClassName("table")[0], this.drag, this.socket);
this.chat = new Chat(document.getElementsByClassName("chat")[0], this.socket);