summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
Diffstat (limited to 'public')
-rw-r--r--public/join.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/public/join.js b/public/join.js
index 2703f97..f199329 100644
--- a/public/join.js
+++ b/public/join.js
@@ -163,8 +163,12 @@ function update() {
message.innerHTML = `Waiting for ${game.owner_name} to start the game...`
else
message.innerHTML = "Waiting for players to join..."
- } else {
+ } else if (game.status === 1) {
message.innerHTML = `<a href="/${game.title_id}/play:${game.game_id}">Observe</a>`
+ } else if (game.status === 2) {
+ message.innerHTML = `<a href="/${game.title_id}/play:${game.game_id}">Review</a>`
+ } else {
+ message.innerHTML = `<a href="/${game.title_id}/play:${game.game_id}">Enter</a>`
}
if (game.owner_id === user_id) {