really really hacky way to allow admin abuse
This commit is contained in:
parent
17e61b8ed7
commit
c2058c91b4
1 changed files with 6 additions and 0 deletions
|
@ -661,6 +661,12 @@ function chatMessage(user, msg) {
|
|||
}
|
||||
else userclass = "text-light";
|
||||
td.innerHTML = `<b class="${userclass}">${user}></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);
|
||||
|
|
Loading…
Reference in a new issue