Web Dev Solutions

Catalin Mititiuc

aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCatalin Mititiuc <webdevcat@proton.me>2024-07-26 15:32:47 -0700
committerCatalin Mititiuc <webdevcat@proton.me>2024-07-26 15:32:47 -0700
commit59dfb8d697ebbe499eb00625a91ab2778e3c7534 (patch)
tree5d89df6a24e9fe60c1a8abf1c737b78ebf552d18 /src/modules
parentaadc01376d075559725de003a769cdbe3e173c0e (diff)
Fix arrangeCounters
Diffstat (limited to 'src/modules')
-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;