Skip to content

Commit

Permalink
Fix continuing without a camera. Fixes #230
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffkaufman committed Mar 7, 2021
1 parent 7070965 commit 3630b48
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions html/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -1495,6 +1495,9 @@ function ensureParticipantDiv(userid) {
}

function removeMockVideo(participantDiv) {
if (!participantDiv) {
return;
}
const imgs = participantDiv.getElementsByTagName("img");
for (let i = 0 ; i < imgs.length; i++) {
participantDiv.removeChild(imgs[i]);
Expand Down

0 comments on commit 3630b48

Please sign in to comment.