Web Dev Solutions

Catalin Mititiuc

aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/gameboard.js')
-rw-r--r--src/modules/gameboard.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/gameboard.js b/src/modules/gameboard.js
index f909d1f..135b5e9 100644
--- a/src/modules/gameboard.js
+++ b/src/modules/gameboard.js
@@ -434,7 +434,7 @@ export function setCounter(name) {
}
function arrangeCounters(container) {
- const counters = container.querySelectorAll('[class^="counter-"]');
+ const counters = [...container.children].filter(isCounter);
const length = 12;
const gravity = 1;
const lateralForce = gravity;