]> git.cworth.org Git - lmno.games/commitdiff
Rename identifier in the "move" handler from 'square' to 'move'
authorCarl Worth <cworth@cworth.org>
Mon, 1 Jun 2020 18:37:10 +0000 (11:37 -0700)
committerCarl Worth <cworth@cworth.org>
Mon, 1 Jun 2020 18:37:10 +0000 (11:37 -0700)
This is not a functional change, but makes sense given the functional
rename from the previous commit.

tictactoe/tictactoe.jsx

index 25c8a9f887742312c4537fca678823628be1190d..5d1845d7d6bd15f28dd46d788538481ce50df3d2 100644 (file)
@@ -20,9 +20,9 @@ events.onerror = function(event) {
 };
 
 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 => {