forked from CringeStudios/gamja
Fix TypeError when sending message
This commit is contained in:
parent
e1dccb8562
commit
c6f9aae84c
@ -147,7 +147,10 @@ function createBuffer(name) {
|
||||
messages: [],
|
||||
|
||||
addMessage: function(msg) {
|
||||
buf.messages.push(msg);
|
||||
if (!msg.tags) {
|
||||
msg.tags = {};
|
||||
}
|
||||
// TODO: set time tag if missing
|
||||
|
||||
if (activeBuffer === buf) {
|
||||
bufferElt.appendChild(createMessageElement(msg));
|
||||
|
Loading…
x
Reference in New Issue
Block a user