mirror of
https://github.com/owenlejeune/AirHockey.git
synced 2025-11-09 17:12:45 -05:00
changed how canvas width/height variables handled on server
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user