openvidu-browser: StreamManager createVideoElement bug fix

pull/255/head
pabloFuente 2019-04-06 16:59:12 +02:00
parent 3ad698f6d5
commit 3abf26d8ca
1 changed files with 1 additions and 1 deletions

View File

@ -283,7 +283,7 @@ export class StreamManager implements EventDispatcher {
createVideoElement(targetElement?: string | HTMLElement, insertMode?: VideoInsertMode): HTMLVideoElement {
let targEl;
if (typeof targetElement === 'string') {
targEl = document.getElementById(targEl);
targEl = document.getElementById(targetElement);
if (!targEl) {
throw new Error("The provided 'targetElement' couldn't be resolved to any HTML element: " + targetElement);
}