From c4ebb6713af0adf3274852b0673037be76070421 Mon Sep 17 00:00:00 2001 From: Raven Scott Date: Sat, 8 Jun 2024 15:22:50 -0400 Subject: [PATCH] Try to fix update peer count --- app.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app.js b/app.js index ead03a2..9a820c6 100644 --- a/app.js +++ b/app.js @@ -233,6 +233,14 @@ function sendMessage(e) { } } +function updatePeerCount() { + const peerCountElement = document.querySelector('#peer-count'); + if (peerCountElement) { + peerCountElement.textContent = `Connected Peers: ${peerCount}`; + } +} + + function scrollToBottom() { var container = document.getElementById("messages-container"); container.scrollTop = container.scrollHeight;