fix(remotecontrol): Handle screen sharing cancel
This commit is contained in:
committed by
Paweł Domas
parent
2818520c8f
commit
5ef914602f
@@ -131,7 +131,9 @@ function shouldBeEnabled() {
|
||||
*/
|
||||
function toggleScreenSharing() {
|
||||
if (APP.conference.isDesktopSharingEnabled) {
|
||||
APP.conference.toggleScreenSharing();
|
||||
|
||||
// eslint-disable-next-line no-empty-function
|
||||
APP.conference.toggleScreenSharing().catch(() => {});
|
||||
} else {
|
||||
initialScreenSharingState = !initialScreenSharingState;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user