forked from snxraven/LinkUp-P2P-Chat
Try to fix update peer count
This commit is contained in:
parent
607480c91b
commit
c4ebb6713a
8
app.js
8
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;
|
||||
|
Loading…
Reference in New Issue
Block a user