fix(remotecontrol): Handle screen sharing cancel

This commit is contained in:
hristoterezov
2017-08-21 11:57:58 +03:00
committed by Paweł Domas
parent 2818520c8f
commit 5ef914602f
3 changed files with 9 additions and 3 deletions

View File

@@ -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;
}