fix javascript errors

This commit is contained in:
Jakob Ketterl 2016-11-12 19:55:43 +00:00
parent 95acf40eb6
commit 6d5a7ffefc
1 changed files with 2 additions and 2 deletions

View File

@ -1247,10 +1247,10 @@ function on_ws_recv(evt)
var slotEl = el.getElementsByClassName('slot-' + meta.slot);
if (!slotEl.length) {
slotEl = document.createElement('div');
slotEl.class = 'slot-' + meta.slot;
slotEl.className = 'slot-' + meta.slot;
el.appendChild(slotEl);
} else {
slotEl = SlotEl[0];
slotEl = slotEl[0];
}
slotEl.innerHTML = html;
};