mirror of
https://github.com/jech/galene.git
synced 2024-11-10 02:35:58 +01:00
do not listen on camera control button when it's not present
This commit is contained in:
parent
581d2439ab
commit
7cb73a501f
1 changed files with 19 additions and 16 deletions
|
@ -1092,6 +1092,8 @@ function registerControlEvent(peerid) {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
let camera = peer.querySelector("span.camera");
|
||||||
|
if (camera) {
|
||||||
peer.querySelector("span.camera").onclick = function(event) {
|
peer.querySelector("span.camera").onclick = function(event) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
let video = getParentVideo(event.target);
|
let video = getParentVideo(event.target);
|
||||||
|
@ -1109,6 +1111,7 @@ function registerControlEvent(peerid) {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue