Skip to content

Commit

Permalink
Merge pull request #5 from rsambouncer/other-master
Browse files Browse the repository at this point in the history
minor bug fix with joining game
  • Loading branch information
alexwongapps authored Oct 3, 2020
2 parents d69b13f + d88113e commit acb0c3b
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions templates/game.html
Original file line number Diff line number Diff line change
Expand Up @@ -294,16 +294,17 @@ <h4 id="chancellorVoteText"></h4>
"titleText"
).textContent = `BAA play here, you are ${name}`;
console.log(name);
if (!id && !name) {
if (id && name){
socket.emit(
"join",
JSON.stringify({
name,
id,
})
);
} else {
location.href = "/";
}
socket.emit(
"join",
JSON.stringify({
name,
id,
})
);

// receive information from shepherd

Expand Down

0 comments on commit acb0c3b

Please sign in to comment.