From: Carl Worth Date: Mon, 1 Jun 2020 18:37:10 +0000 (-0700) Subject: Rename identifier in the "move" handler from 'square' to 'move' X-Git-Url: https://git.cworth.org/git?p=lmno.games;a=commitdiff_plain;h=f857ec2e884b1f03257fe84ececb673a36ab9ca7;hp=4e9bfe84b21940998e45ad8dd79769df5dfed3ee Rename identifier in the "move" handler from 'square' to 'move' This is not a functional change, but makes sense given the functional rename from the previous commit. --- diff --git a/tictactoe/tictactoe.jsx b/tictactoe/tictactoe.jsx index 25c8a9f..5d1845d 100644 --- a/tictactoe/tictactoe.jsx +++ b/tictactoe/tictactoe.jsx @@ -20,9 +20,9 @@ events.onerror = function(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 => {