Browse Source

Minor show/hide fixes

master
Levi Olson 5 years ago
parent
commit
31905c03d5
2 changed files with 5 additions and 1 deletions
  1. +1
    -1
      dist/bundle.js
  2. +4
    -0
      src/index.js

+ 1
- 1
dist/bundle.js
File diff suppressed because it is too large
View File


+ 4
- 0
src/index.js View File

@ -139,6 +139,8 @@ if (startGameForm) {
return false
}
_createGame().then(resp => {
name.classList.add("hide")
nameLabel.classList.add("hide")
startGameForm.classList.add("hide")
console.debug("_createGame() success", resp)
game.turn = resp.turn
@ -163,6 +165,8 @@ if (joinGameForm) {
return false
}
_addPlayer().then(resp => {
name.classList.add("hide")
nameLabel.classList.add("hide")
joinGameForm.classList.add("hide")
console.debug("_addPlayer() success", resp)
conn.send(JSON.stringify({

Loading…
Cancel
Save