Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion erizo_controller/erizoClient/src/views/Bar.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,12 @@ const Bar = (spec) => {
waiting = setTimeout(show, 1000);
};

document.getElementById(that.elementID).appendChild(that.div);
// Check for a passed DOM node.
if (typeof that.elementID === 'object' && typeof that.elementID.appendChild === 'function') {
that.elementID.appendChild(that.div);
} else {
document.getElementById(that.elementID).appendChild(that.div);
}
that.div.appendChild(that.bar);
that.bar.appendChild(that.link);
that.link.appendChild(that.logo);
Expand Down
8 changes: 7 additions & 1 deletion erizo_controller/erizoClient/src/views/Speaker.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,13 @@ const Speaker = (spec) => {
show('none');
}

document.getElementById(that.elementID).appendChild(that.div);
// Check for a passed DOM node.
if (typeof that.elementID === 'object' && typeof that.elementID.appendChild === 'function') {
that.elementID.appendChild(that.div);
} else {
document.getElementById(that.elementID).appendChild(that.div);
}

return that;
};

Expand Down