Skip to content

Commit 8fb50a3

Browse files
committed
remove id from start of previous messages used for debugging
1 parent 18faa50 commit 8fb50a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

public/scripts/home.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,13 @@ socket.on('receive message', message => {
4545
// Handling the receiving of chatlog for new connections
4646
socket.on('receive chatlog', messages => {
4747
for (let i = messages.length-1; i > 0; i--) { // Go through each message of chatlog from last (oldest) to first (newest)
48-
const { id, username, content } = messages[i]
48+
const { username, content } = messages[i]
4949

5050
// Add message to chatlog
5151
let html = $('.home__container__chat-view__chatlog').html()
5252
html += `
5353
<div class="home__container__chat-view__chatlog__message">
54-
<strong>${id}. ${username}:</strong> ${content}
54+
<strong>${username}:</strong> ${content}
5555
</div>
5656
`
5757
$('.home__container__chat-view__chatlog').html(html)

0 commit comments

Comments
 (0)