Skip to content

Commit 0abe65e

Browse files
author
Julien
committed
refactor(sdk): rename variable for clarity
1 parent 7f5c053 commit 0abe65e

File tree

1 file changed

+4
-4
lines changed
  • runner/src/main/resources/view

1 file changed

+4
-4
lines changed

runner/src/main/resources/view/app.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,15 +83,15 @@ function PlayerCtrl ($scope, $timeout, $interval, $element) {
8383
loadGame()
8484
}
8585

86-
function onParsedGameInfo (gameInfo) {
86+
function onParsedGameInfo (parsedGameInfo) {
8787
$scope.playerColors = {}
88-
ctrl.parsedGameInfo = gameInfo
89-
gameInfo.agents.forEach(function (agent) {
88+
ctrl.parsedGameInfo = parsedGameInfo
89+
parsedGameInfo.agents.forEach(function (agent) {
9090
$scope.playerColors[agent.index] = agent.color
9191
})
9292
cgPlayer.off('parsedGameInfo', onParsedGameInfo)
9393
$timeout(() => {
94-
const frameData = gameInfo.frames[0]
94+
const frameData = parsedGameInfo.frames[0]
9595
$scope.referee = { ...frameData.referee }
9696
$scope.summary = frameData.gameSummary
9797
})

0 commit comments

Comments
 (0)