Web Dev Solutions

Catalin Mititiuc

aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCatalin Mititiuc <webdevcat@proton.me>2024-08-08 15:27:12 -0700
committerCatalin Mititiuc <webdevcat@proton.me>2024-08-08 15:27:12 -0700
commit23188152c91a8e638ab832fa1fa122d59d1fc391 (patch)
treed8568304a5b4b91f4864a540619493a511a4bb24 /src/index.js
parentb970b34a8848a65a44f1e3a64465270845371492 (diff)
Add additional params to observable calls; reveal counter and record logic on selections
Diffstat (limited to 'src/index.js')
-rw-r--r--src/index.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/index.js b/src/index.js
index a8e0c4b..89af2a1 100644
--- a/src/index.js
+++ b/src/index.js
@@ -172,8 +172,7 @@ document.querySelectorAll('.end-turn').forEach(el =>
gameboard.clearFiringArcs(opponent);
if (opponentRecords.length > 0) {
- Observable.notify('select', opponentRecords.at(0));
- //firstOpponentRecord.scrollIntoView({ behavior: 'smooth' });
+ Observable.notify('select', opponentRecords.at(0), { revealCounter: true, revealRecord: true });
}
})
);