Web Dev Solutions

Catalin Mititiuc

aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCatalin Mititiuc <webdevcat@proton.me>2024-04-28 16:46:25 -0700
committerCatalin Mititiuc <webdevcat@proton.me>2024-04-28 16:46:25 -0700
commit3e521e2f64809edc47f50f7215a6a05dd32b69dc (patch)
treec82fcea9de791b5090383a4cbf3ad10a92cc06e0 /src/modules/game/soldier.js
parent4ce55ea0cd7db1077bc7919ee976458c900c968c (diff)
Rename element class 'board' to 'gameboard'
Diffstat (limited to 'src/modules/game/soldier.js')
-rw-r--r--src/modules/game/soldier.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/game/soldier.js b/src/modules/game/soldier.js
index 0d75fc6..922faca 100644
--- a/src/modules/game/soldier.js
+++ b/src/modules/game/soldier.js
@@ -77,7 +77,7 @@ export function place(svg, selected, cell) {
trace.dataset.allegiance = selected.dataset.allegiance;
trace.classList.add('move-trace');
- svg.querySelector('.board').prepend(trace);
+ svg.querySelector('.gameboard').prepend(trace);
} else {
points = `${trace.getAttribute('points')} ${current.x},${current.y}`;
}