|
|
@@ -1721,8 +1721,23 @@ export default {
|
|
1721
|
1721
|
let titleKey;
|
|
1722
|
1722
|
|
|
1723
|
1723
|
if (error.name === JitsiTrackErrors.PERMISSION_DENIED) {
|
|
1724
|
|
- descriptionKey = 'dialog.screenSharingPermissionDeniedError';
|
|
1725
|
|
- titleKey = 'dialog.screenSharingFailedToInstallTitle';
|
|
|
1724
|
+
|
|
|
1725
|
+ // in FF the only option for user is to deny access temporary or
|
|
|
1726
|
+ // permanently and we only receive permission_denied
|
|
|
1727
|
+ // we always show some info cause in case of permanently, no info
|
|
|
1728
|
+ // shown will be bad experience
|
|
|
1729
|
+ //
|
|
|
1730
|
+ // TODO: detect interval between requesting permissions and received
|
|
|
1731
|
+ // error, this way we can detect user interaction which will have
|
|
|
1732
|
+ // longer delay
|
|
|
1733
|
+ if (JitsiMeetJS.util.browser.isFirefox()) {
|
|
|
1734
|
+ descriptionKey
|
|
|
1735
|
+ = 'dialog.screenSharingFirefoxPermissionDeniedError';
|
|
|
1736
|
+ titleKey = 'dialog.screenSharingFirefoxPermissionDeniedTitle';
|
|
|
1737
|
+ } else {
|
|
|
1738
|
+ descriptionKey = 'dialog.screenSharingPermissionDeniedError';
|
|
|
1739
|
+ titleKey = 'dialog.screenSharingFailedToInstallTitle';
|
|
|
1740
|
+ }
|
|
1726
|
1741
|
} else {
|
|
1727
|
1742
|
descriptionKey = 'dialog.screenSharingFailedToInstall';
|
|
1728
|
1743
|
titleKey = 'dialog.screenSharingFailedToInstallTitle';
|