Try to fix update peer count

This commit is contained in:
Raven Scott 2024-06-08 15:22:50 -04:00
parent 607480c91b
commit c4ebb6713a

8
app.js
View File

@ -233,6 +233,14 @@ function sendMessage(e) {
} }
} }
function updatePeerCount() {
const peerCountElement = document.querySelector('#peer-count');
if (peerCountElement) {
peerCountElement.textContent = `Connected Peers: ${peerCount}`;
}
}
function scrollToBottom() { function scrollToBottom() {
var container = document.getElementById("messages-container"); var container = document.getElementById("messages-container");
container.scrollTop = container.scrollHeight; container.scrollTop = container.scrollHeight;