msg
parent
3ae81f1ec7
commit
fd6092947f
|
@ -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;
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue