summaryrefslogtreecommitdiff
path: root/public/join.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-12-27 13:38:05 +0100
committerTor Andersson <tor@ccxvii.net>2024-01-01 16:47:37 +0100
commitcb2a5796df9733145e97b13a8fde6f842fc3476d (patch)
treea1a97781bb88e5da643d920e11ef0e4333c13eab /public/join.js
parentc0a8a46352279e105b026b1e0344eba6b0cfb231 (diff)
downloadserver-cb2a5796df9733145e97b13a8fde6f842fc3476d.tar.gz
Start games automatically instead of sending reminders to start.
Blacklists and invitations handle the cases for which manual starting of games was needed.
Diffstat (limited to 'public/join.js')
-rw-r--r--public/join.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/public/join.js b/public/join.js
index e0f6c3c..089a615 100644
--- a/public/join.js
+++ b/public/join.js
@@ -157,10 +157,8 @@ function update_common() {
let message = window.message
if (game.status === 0) {
- if (ready && (game.owner_id === user_id))
- message.innerHTML = "Ready to start..."
- else if (ready)
- message.innerHTML = `Waiting for ${game.owner_name} to start the game...`
+ if (ready)
+ message.innerHTML = "Waiting to start..."
else
message.innerHTML = "Waiting for players to join..."
} else if (game.status === 1) {