fixed issue with borders

This commit is contained in:
Pierre Tellier 2024-04-30 10:14:02 +02:00
parent c08ec6ae1c
commit 332e6847af
1 changed files with 4 additions and 1 deletions

View File

@ -195,7 +195,10 @@ function removeMove(move: Move) {
const box = <HTMLElement>line.children[move.x - min_x];
setInnerTile(box, Array(13).fill(9), "0");
box.removeChild(box.getElementsByTagName('img')[0]);
box.style.border = "none";
const t = ["player0", "player0-hidden", "player1", "player1-hidden", "player-1", "player-1-hidden"];
for (let i = 0; i < 6; i++) {
box.classList.remove(t[i]);
}
box.style.rotate = "0";
}