summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2025-09-19 12:58:37 -0400
committerpommicket <pommicket@gmail.com>2025-09-19 12:58:37 -0400
commit8e7eed4b1255387ce27c2926f901f8678d60b466 (patch)
tree5bc71a0099c3756e7ebe68286b187889d0dadd71
parentc53699a21bbb2f3884ecd74e6085efdbc2fc2a28 (diff)
Fix ∅ .possible being toggled
-rw-r--r--pub/blankplays.js3
-rw-r--r--pub/index.html2
2 files changed, 3 insertions, 2 deletions
diff --git a/pub/blankplays.js b/pub/blankplays.js
index 46faab5..01bfce1 100644
--- a/pub/blankplays.js
+++ b/pub/blankplays.js
@@ -399,7 +399,8 @@ If problem persists, e-mail ${EMAIL}.`);
let row = parseInt(squareSelected.dataset.row);
let col = parseInt(squareSelected.dataset.col);
toggleInGuesses(row, col, letter);
- tile.classList.toggle('possible');
+ if (letter !== NOTHING)
+ tile.classList.toggle('possible');
} else {
if (placing && placing !== tile) placing.classList.remove('placing');
tile.classList.toggle('placing');
diff --git a/pub/index.html b/pub/index.html
index f6c1dfe..4176ef8 100644
--- a/pub/index.html
+++ b/pub/index.html
@@ -6,7 +6,7 @@
<title>BlankPlays</title>
<link rel="icon" href="/icon.png">
<link rel="stylesheet" href="/index.css">
- <script src="/blankplays.js?v=2" id="main-script" async></script>
+ <script src="/blankplays.js?v=3" id="main-script" async></script>
</head>
<body>
<script blocking="render">