Commit 7cb73a50 authored by Alain Takoudjou's avatar Alain Takoudjou

do not listen on camera control button when it's not present

parent 581d2439
......@@ -1092,6 +1092,8 @@ function registerControlEvent(peerid) {
}
};
let camera = peer.querySelector("span.camera");
if (camera) {
peer.querySelector("span.camera").onclick = function(event) {
event.preventDefault();
let video = getParentVideo(event.target);
......@@ -1108,6 +1110,7 @@ function registerControlEvent(peerid) {
addLocalMedia(id);
}
};
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment