diff --git a/src/index.js b/src/index.js index cd4da95..e71a80e 100644 --- a/src/index.js +++ b/src/index.js @@ -679,13 +679,13 @@ 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) - } - }); } + // 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); }