fix javascript errors

This commit is contained in:
Jakob Ketterl 2016-11-12 19:55:43 +00:00
parent 95acf40eb6
commit 6d5a7ffefc

View File

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