dis-activated ttt.ts line 98 - does not exist
This commit is contained in:
parent
914ef550be
commit
4fc43cc429
1 changed files with 2 additions and 2 deletions
|
|
@ -51,7 +51,7 @@ async function handleTTT(): Promise<RouteHandlerReturn> {
|
||||||
socket.emit('enqueue');
|
socket.emit('enqueue');
|
||||||
|
|
||||||
const cells = app.querySelectorAll<HTMLDivElement>(".ttt-cell");
|
const cells = app.querySelectorAll<HTMLDivElement>(".ttt-cell");
|
||||||
const grid = app.querySelector(".ttt-grid"); // Not sure about this one
|
// const grid = app.querySelector(".ttt-grid"); // Not sure about this one
|
||||||
|
|
||||||
const updateUI = (boardState: (string | null)[]) => {
|
const updateUI = (boardState: (string | null)[]) => {
|
||||||
boardState.forEach((state, idx) => {
|
boardState.forEach((state, idx) => {
|
||||||
|
|
@ -95,7 +95,7 @@ async function handleTTT(): Promise<RouteHandlerReturn> {
|
||||||
updateUI(u.boardState);
|
updateUI(u.boardState);
|
||||||
|
|
||||||
if (u.gameState && u.gameState !== "ongoing") {
|
if (u.gameState && u.gameState !== "ongoing") {
|
||||||
grid?.classList.add("pointer-events-none");
|
// grid?.classList.add("pointer-events-none");
|
||||||
|
|
||||||
if (u.gameState !== curGame.lastState) {
|
if (u.gameState !== curGame.lastState) {
|
||||||
curGame.lastState = u.gameState;
|
curGame.lastState = u.gameState;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue