fix(remotecontrol): Show error on cancel of desktop picker
This commit is contained in:
parent
dc8198100b
commit
1498245b9e
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue