Shows and error dialog when we fail to install desktop sharing plugin for some reason.

This commit is contained in:
damencho 2016-03-04 15:20:05 -06:00
parent 25a9928758
commit 0470106524
1 changed files with 10 additions and 0 deletions

View File

@ -631,6 +631,16 @@ export default {
this.videoSwitchInProgress = false; this.videoSwitchInProgress = false;
this.toggleScreenSharing(false); this.toggleScreenSharing(false);
console.error('failed to share local desktop', err); console.error('failed to share local desktop', err);
let dialogTxt = APP.translation
.generateTranslationHTML("dialog.failtoinstall");
let dialogTitle = APP.translation
.generateTranslationHTML("dialog.error");
APP.UI.messageHandler.openDialog(
dialogTitle,
dialogTxt,
false
);
}); });
} else { } else {
createLocalTracks('video').then( createLocalTracks('video').then(