diff --git a/src/index.js b/src/index.js index 288eac8..dc3b6eb 100644 --- a/src/index.js +++ b/src/index.js @@ -661,6 +661,12 @@ function chatMessage(user, msg) { } else userclass = "text-light"; td.innerHTML = `${user}> ${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);