Merge branch 'master' of https://github.com/computernewb/collab-vm-1.2-webapp
This commit is contained in:
commit
96e90ffcc3
|
|
@ -661,6 +661,12 @@ function chatMessage(user, msg) {
|
||||||
}
|
}
|
||||||
else userclass = "text-light";
|
else userclass = "text-light";
|
||||||
td.innerHTML = `<b class="${userclass}">${user}></b> ${msg}`;
|
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);
|
tr.appendChild(td);
|
||||||
chatList.appendChild(tr);
|
chatList.appendChild(tr);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user