Fixes the issue with SS external installation dialog is not closed after the plugin has been installed
This commit is contained in:
parent
49cc4ae087
commit
5c9a85e928
|
@ -894,10 +894,21 @@ export default {
|
||||||
checkAgain: () => {
|
checkAgain: () => {
|
||||||
return DSExternalInstallationInProgress;
|
return DSExternalInstallationInProgress;
|
||||||
},
|
},
|
||||||
listener: (url) => {
|
listener: (status, url) => {
|
||||||
|
switch(status) {
|
||||||
|
case "waitingForExtension":
|
||||||
DSExternalInstallationInProgress = true;
|
DSExternalInstallationInProgress = true;
|
||||||
externalInstallation = true;
|
externalInstallation = true;
|
||||||
APP.UI.showExtensionExternalInstallationDialog(url);
|
APP.UI.showExtensionExternalInstallationDialog(
|
||||||
|
url);
|
||||||
|
break;
|
||||||
|
case "extensionFound":
|
||||||
|
if(externalInstallation) //close the dialog
|
||||||
|
$.prompt.close();
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
//Unknown status
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}).then(([stream]) => {
|
}).then(([stream]) => {
|
||||||
|
@ -924,6 +935,9 @@ export default {
|
||||||
'conference.sharingDesktop.start');
|
'conference.sharingDesktop.start');
|
||||||
console.log('sharing local desktop');
|
console.log('sharing local desktop');
|
||||||
}).catch((err) => {
|
}).catch((err) => {
|
||||||
|
// close external installation dialog to show the error.
|
||||||
|
if(externalInstallation)
|
||||||
|
$.prompt.close();
|
||||||
this.videoSwitchInProgress = false;
|
this.videoSwitchInProgress = false;
|
||||||
this.toggleScreenSharing(false);
|
this.toggleScreenSharing(false);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue