From f857ec2e884b1f03257fe84ececb673a36ab9ca7 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Mon, 1 Jun 2020 11:37:10 -0700 Subject: [PATCH 1/1] 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. --- tictactoe/tictactoe.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 => { -- 2.43.0