Skip to content

Commit

Permalink
Fix updating game in progress on home page
Browse files Browse the repository at this point in the history
  • Loading branch information
arbruijn committed Nov 9, 2019
1 parent 412e268 commit eea284a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/js/home.js
Original file line number Diff line number Diff line change
Expand Up @@ -472,11 +472,11 @@ class Home {
if (!gameEl) {
document.getElementById("games").insertAdjacentHTML("beforeend", /* html */`
<div class="game" id="game-${ip}">
${details}
</div>
`);
gameEl = document.getElementById(`game-${ip}`);
}
gameEl.innerHTML = details;

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

Expand Down

0 comments on commit eea284a

Please sign in to comment.