This is not a functional change, but makes sense given the functional
rename from the previous commit.
};
events.addEventListener("move", event => {
};
events.addEventListener("move", event => {
- const square = JSON.parse(event.data);
+ const move = JSON.parse(event.data);
- window.game.receiveMove(square);
+ window.game.receiveMove(move);
});
events.addEventListener("game-state", event => {
});
events.addEventListener("game-state", event => {