Fix TypeError when sending message

This commit is contained in:
Simon Ser
2020-06-21 16:26:41 +02:00
parent e1dccb8562
commit c6f9aae84c

View File

@@ -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));