Trying to fix peer counts

This commit is contained in:
Raven Scott 2024-06-08 16:08:53 -04:00
parent ac2da1524d
commit d0310247c5

4
app.js
View File

@ -237,9 +237,9 @@ function sendMessage(e) {
} }
function updatePeerCount() { function updatePeerCount() {
const peerCountElement = document.querySelector('#peer-count'); const peerCountElement = document.querySelector('#peers-count');
if (peerCountElement) { if (peerCountElement) {
peerCountElement.textContent = `Connected Peers: ${peerCount}`; peerCountElement.textContent = peerCount; // Display the actual peer count
} }
} }