mirror of
https://codeberg.org/emersion/gamja.git
synced 2025-04-28 07:27:03 -04:00
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: [],
|
||||
|
||||
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…
Add table
Add a link
Reference in a new issue