mirror of
https://git.sr.ht/~emersion/gamja
synced 2024-11-14 19:25:26 -05:00
Fix addMessage always adding to last buffer
This commit is contained in:
parent
4c032c03a7
commit
55e1107e38
1 changed files with 2 additions and 2 deletions
|
@ -87,7 +87,7 @@ function createBuffer(name) {
|
|||
var li = document.createElement("li");
|
||||
li.appendChild(a);
|
||||
|
||||
buf = {
|
||||
var buf = {
|
||||
name: name,
|
||||
li: li,
|
||||
messages: [],
|
||||
|
@ -96,7 +96,7 @@ function createBuffer(name) {
|
|||
addMessage: function(msg) {
|
||||
buf.messages.push(msg);
|
||||
|
||||
if (activeBuffer == buf) {
|
||||
if (activeBuffer === buf) {
|
||||
logElt.appendChild(createMessageElement(msg));
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue