Fix: Show listener the Station ID

This commit is contained in:
Raven Scott 2024-11-24 06:22:11 -05:00
parent b10b4f390d
commit 30cbd4231a

2
app.js
View File

@ -122,7 +122,7 @@ function updatePeerCount() {
if (isBroadcasting) {
stationInfoElement.textContent = `Station ID: ${b4a.toString(stationKey, 'hex')}\nConnected Peers: ${peerCount}`;
} else {
stationInfoElement.textContent = `Connected Peers: ${peerCount}`;
stationInfoElement.textContent = `Station ID: ${b4a.toString(stationKey, 'hex')}\nConnected Peers: ${peerCount}`;
}
console.log(`Peer count updated: ${peerCount}`);
}