|
@@ -56,6 +56,14 @@ const CHROME_EXTENSION_IFRAME_ERROR
|
56
|
56
|
const CHROME_NO_EXTENSION_ERROR_MSG // eslint-disable-line no-unused-vars
|
57
|
57
|
= 'Could not establish connection. Receiving end does not exist.';
|
58
|
58
|
|
|
59
|
+/**
|
|
60
|
+ * The error message returned by chrome when the extension install action needs
|
|
61
|
+ * to be initiated by a user gesture.
|
|
62
|
+ * @type {string}
|
|
63
|
+ */
|
|
64
|
+const CHROME_USER_GESTURE_REQ_ERROR
|
|
65
|
+ = 'Chrome Web Store installations can only be initated by a user gesture.';
|
|
66
|
+
|
59
|
67
|
/**
|
60
|
68
|
* Handles obtaining a stream from a screen capture on different browsers.
|
61
|
69
|
*/
|
|
@@ -394,9 +402,13 @@ const ScreenObtainer = {
|
394
|
402
|
= `Failed to install the extension from ${webStoreInstallUrl}`;
|
395
|
403
|
|
396
|
404
|
logger.log(msg, e);
|
397
|
|
- failCallback(new JitsiTrackError(
|
398
|
|
- JitsiTrackErrors.CHROME_EXTENSION_INSTALLATION_ERROR,
|
399
|
|
- msg));
|
|
405
|
+
|
|
406
|
+ const error
|
|
407
|
+ = e === CHROME_USER_GESTURE_REQ_ERROR
|
|
408
|
+ ? JitsiTrackErrors.CHROME_EXTENSION_USER_GESTURE_REQUIRED
|
|
409
|
+ : JitsiTrackErrors.CHROME_EXTENSION_INSTALLATION_ERROR;
|
|
410
|
+
|
|
411
|
+ failCallback(new JitsiTrackError(error, msg));
|
400
|
412
|
},
|
401
|
413
|
|
402
|
414
|
/* eslint-enable max-params */
|