Fix TypeError when sending message
This commit is contained in:
parent
e1dccb8562
commit
c6f9aae84c
1 changed files with 4 additions and 1 deletions
|
@ -147,7 +147,10 @@ function createBuffer(name) {
|
||||||
messages: [],
|
messages: [],
|
||||||
|
|
||||||
addMessage: function(msg) {
|
addMessage: function(msg) {
|
||||||
buf.messages.push(msg);
|
if (!msg.tags) {
|
||||||
|
msg.tags = {};
|
||||||
|
}
|
||||||
|
// TODO: set time tag if missing
|
||||||
|
|
||||||
if (activeBuffer === buf) {
|
if (activeBuffer === buf) {
|
||||||
bufferElt.appendChild(createMessageElement(msg));
|
bufferElt.appendChild(createMessageElement(msg));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue