Fix empty buffers on switch
Fixes: c6f9aae84c
("Fix TypeError when sending message")
This commit is contained in:
parent
eef5609dcf
commit
f9972dae5f
1 changed files with 2 additions and 0 deletions
|
@ -146,6 +146,8 @@ function createBuffer(name) {
|
||||||
}
|
}
|
||||||
// TODO: set time tag if missing
|
// TODO: set time tag if missing
|
||||||
|
|
||||||
|
buf.messages.push(msg);
|
||||||
|
|
||||||
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