changed how canvas width/height variables handled on server

This commit is contained in:
Owen LeJeune
2018-03-09 10:18:38 -05:00
parent 472f3eed13
commit 9533abc20e
2 changed files with 3 additions and 6 deletions

View File

@@ -124,7 +124,7 @@ socket.on("collision", (data) => {
})
document.addEventListener("DOMContentLoaded", () => {
socket.emit("newWindowLoad", JSON.stringify({width: canvas.width, height: canvas.height}));
socket.emit("newWindowLoad", null);
});
window.addEventListener("beforeunload", (e) => {