diff options
author | Kyle Gunger <kgunger12@gmail.com> | 2022-08-18 02:17:23 -0400 |
---|---|---|
committer | Kyle Gunger <kgunger12@gmail.com> | 2022-08-18 02:17:23 -0400 |
commit | 46aae06bd699b3ca396f7f5c750e1fb9fc9ff4bc (patch) | |
tree | 92a7c7179a568d0095c2fff3c14d20437c1acd8b /scripts/client.js | |
parent | 4efae60183feb616c3dec7698a6a2fe4351b71c7 (diff) |
Add transform to drags
Diffstat (limited to 'scripts/client.js')
-rw-r--r-- | scripts/client.js | 3 |
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); |