forked from CringeStudios/gamja
Fix addMessage always adding to last buffer
This commit is contained in:
parent
4c032c03a7
commit
55e1107e38
@ -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…
x
Reference in New Issue
Block a user