Web Dev Solutions

Catalin Mititiuc

aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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 ffb902b..fb0a559 100644
--- a/src/modules/game/soldier.js
+++ b/src/modules/game/soldier.js
@@ -80,7 +80,7 @@ export function handleTrace(svg, selected, clone, current) {
if (!trace) {
trace = createTrace(getCellPosition(clone.parentElement), current, selected);
- svg.querySelector('.gameboard').prepend(trace);
+ svg.querySelector('.grid').before(trace);
} else {
const points = `${trace.getAttribute('points')} ${current.x},${current.y}`;
trace.setAttributeNS(null, 'points', points);