Skip to content

Commit

Permalink
Some other touchups.
Browse files Browse the repository at this point in the history
  • Loading branch information
roncli committed Nov 20, 2019
1 parent c14ec9b commit 2f4efe3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions public/js/home.js
Original file line number Diff line number Diff line change
Expand Up @@ -476,8 +476,6 @@ class Home {
game.countdown = data.countdown;
game.elapsed = data.elapsed;

const details = DetailsView.get(game, true);

let gameEl = document.getElementById(`game-${ip}`);

if (!gameEl) {
Expand All @@ -487,7 +485,8 @@ class Home {
`);
gameEl = document.getElementById(`game-${ip}`);
}
gameEl.innerHTML = details;

gameEl.innerHTML = DetailsView.get(game, true);

const el = gameEl.querySelector(".time");

Expand Down
2 changes: 1 addition & 1 deletion public/views/common/details.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class DetailsView {
<div class="info">
<div class="time">
${game.inLobby ? /* html */`
LOBBY ${game.settings.players.length}/${game.settings.maxPlayers}
In Lobby<br />${game.settings.players.length}/${game.settings.maxPlayers} Players
` : game.countdown ? /* html */`
<script>new Countdown(${game.countdown});</script>
` : game.elapsed || game.elapsed === 0 ? /* html */`
Expand Down

0 comments on commit 2f4efe3

Please sign in to comment.