fix(remotecontrol): Show error on cancel of desktop picker

This commit is contained in:
hristoterezov 2017-07-09 22:42:35 -05:00
parent dc8198100b
commit 1498245b9e
1 changed files with 5 additions and 4 deletions

View File

@ -1183,24 +1183,25 @@ export default {
JitsiMeetJS.analytics.sendEvent(
'conference.sharingDesktop.start');
logger.log('sharing local desktop');
}).catch((err) => {
}).catch(err => {
// close external installation dialog to show the error.
if(externalInstallation)
$.prompt.close();
this.videoSwitchInProgress = false;
this.toggleScreenSharing(false);
if (err.name === TrackErrors.CHROME_EXTENSION_USER_CANCELED) {
return;
return Promise.reject(err);
}
this.toggleScreenSharing(false);
logger.error('failed to share local desktop', err);
if (err.name === TrackErrors.FIREFOX_EXTENSION_NEEDED) {
APP.UI.showExtensionRequiredDialog(
config.desktopSharingFirefoxExtensionURL
);
return;
return Promise.reject(err);
}
// Handling: