Skip to content

Commit

Permalink
refactor: ♻️ remove requestAnimationFrame for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
nstringham committed Nov 18, 2023
1 parent 998b556 commit 2aaea87
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/game/html-player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,11 +144,9 @@ async function updateBoard(board: Board) {
}

if (rippleOrigin == undefined) {
requestAnimationFrame(() => {
for (let i = 0; i < 64; i++) {
updateCell(i);
}
});
for (let i = 0; i < 64; i++) {
updateCell(i);
}
} else {
updateCell(rippleOrigin);
const originX = rippleOrigin % 8;
Expand Down

0 comments on commit 2aaea87

Please sign in to comment.