Handles the error when user cancels desktop sharing window.

This commit is contained in:
damencho 2016-03-04 15:21:07 -06:00
parent 0470106524
commit 413e5098c8
1 changed files with 4 additions and 0 deletions

View File

@ -630,6 +630,10 @@ export default {
}).catch((err) => {
this.videoSwitchInProgress = false;
this.toggleScreenSharing(false);
if(err === TrackErrors.CHROME_EXTENSION_USER_CANCELED)
return;
console.error('failed to share local desktop', err);
let dialogTxt = APP.translation