forked from snxraven/LinkUp-P2P-Chat
Trying to fix peer counts
This commit is contained in:
parent
ac2da1524d
commit
d0310247c5
4
app.js
4
app.js
@ -237,9 +237,9 @@ function sendMessage(e) {
|
||||
}
|
||||
|
||||
function updatePeerCount() {
|
||||
const peerCountElement = document.querySelector('#peer-count');
|
||||
const peerCountElement = document.querySelector('#peers-count');
|
||||
if (peerCountElement) {
|
||||
peerCountElement.textContent = `Connected Peers: ${peerCount}`;
|
||||
peerCountElement.textContent = peerCount; // Display the actual peer count
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user