From 332e6847afdb86570b5a0a56590f606497fcd614 Mon Sep 17 00:00:00 2001 From: Pierre Tellier Date: Tue, 30 Apr 2024 10:14:02 +0200 Subject: [PATCH] fixed issue with borders --- src/moooove.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/moooove.ts b/src/moooove.ts index 69e8609..b228419 100644 --- a/src/moooove.ts +++ b/src/moooove.ts @@ -195,7 +195,10 @@ function removeMove(move: Move) { const box = 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"; }