Update public/index.html
Browse files- public/index.html +1 -1
public/index.html
CHANGED
@@ -75,7 +75,7 @@
|
|
75 |
// Listen for chat messages
|
76 |
socket.on('chat message', function(data) {
|
77 |
const item = document.createElement('li');
|
78 |
-
item.
|
79 |
messages.appendChild(item);
|
80 |
window.scrollTo(0, document.body.scrollHeight);
|
81 |
twemoji.parse(document.body);
|
|
|
75 |
// Listen for chat messages
|
76 |
socket.on('chat message', function(data) {
|
77 |
const item = document.createElement('li');
|
78 |
+
item.innerText = `${data.username} (Nitro member): ${data.message}`;
|
79 |
messages.appendChild(item);
|
80 |
window.scrollTo(0, document.body.scrollHeight);
|
81 |
twemoji.parse(document.body);
|