summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
Diffstat (limited to 'play.js')
-rw-r--r--play.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/play.js b/play.js
index a5c824b..d9c7ff7 100644
--- a/play.js
+++ b/play.js
@@ -979,10 +979,13 @@ function update_discard() {
ui.discard[i].className = ""
}
}
+ } else {
+ for (let i = 0; i < 4; ++i)
+ ui.discard[i].className = ""
}
}
-window.addEventListener("resize", update_discard)
+window.addEventListener("resize", update_discard)
let once = true
function on_update() {