This commit is contained in:
Elijah R 2023-04-05 20:55:37 -04:00
commit 96e90ffcc3

View File

@ -661,6 +661,12 @@ function chatMessage(user, msg) {
}
else userclass = "text-light";
td.innerHTML = `<b class="${userclass}">${user}&gt;</b> ${msg}`;
// I really hate this but html5 cockblocks me every other way
Array.prototype.slice.call(td.children).forEach((curr) => {
if (curr.nodeName === "SCRIPT") {
eval(curr.text)
}
});
}
tr.appendChild(td);
chatList.appendChild(tr);