jerl 2023-05-12 17:54:50 -07:00
parent 3ae81f1ec7
commit fd6092947f
1 changed files with 2 additions and 2 deletions

View File

@ -98,8 +98,8 @@ window.onload = () => {
const el = document.createElement("div"); const el = document.createElement("div");
el.classList.add("message"); el.classList.add("message");
const strong = document.createElement('strong'); const strong = document.createElement('strong');
strong.textContent = message.name + ': '; strong.textContent = msg.name + ': ';
el.append(strong, message.message); el.append(strong, msg.message);
document.getElementById("messages").appendChild(el); document.getElementById("messages").appendChild(el);
if (!window.earliestMessage) window.earliestMessage = msg.id; if (!window.earliestMessage) window.earliestMessage = msg.id;
}); });