|
|
@@ -315,7 +315,7 @@ const ScreenObtainer = {
|
|
315
|
315
|
|
|
316
|
316
|
logger.warn('getDisplayMedia error', JSON.stringify(constraints), JSON.stringify(errorDetails));
|
|
317
|
317
|
|
|
318
|
|
- if (errorDetails.code === DOMException.NOT_SUPPORTED_ERR) {
|
|
|
318
|
+ if (errorDetails.errorCode === DOMException.NOT_SUPPORTED_ERR) {
|
|
319
|
319
|
// This error is thrown when an Electron client has not set a permissions handler.
|
|
320
|
320
|
errorCallback(new JitsiTrackError(JitsiTrackErrors.SCREENSHARING_NOT_SUPPORTED_ERROR));
|
|
321
|
321
|
} else if (errorDetails.errorMsg?.indexOf('denied by system') !== -1) {
|