Skip to content

Commit

Permalink
scroll down logs
Browse files Browse the repository at this point in the history
  • Loading branch information
mister-wise committed Jan 28, 2024
1 parent cd36228 commit 22fe4dc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions client/static/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,8 @@ function addToGameLog(message) {
let li = document.createElement("li");
li.innerHTML = message;
document.querySelector("#gameLog ul").appendChild(li);
let logParent = document.querySelector("#gameLog");
logParent.scrollTop = logParent.scrollHeight;
}

function showLobbyErrorMessage(message) {
Expand Down

0 comments on commit 22fe4dc

Please sign in to comment.