Web Dev Solutions

Catalin Mititiuc

From 23188152c91a8e638ab832fa1fa122d59d1fc391 Mon Sep 17 00:00:00 2001 From: Catalin Mititiuc Date: Thu, 8 Aug 2024 15:27:12 -0700 Subject: Add additional params to observable calls; reveal counter and record logic on selections --- src/index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/index.js') 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 }); } }) ); -- cgit v1.2.3