|
@@ -278,12 +278,14 @@ export default class BrowserCapabilities extends BrowserDetection {
|
278
|
278
|
}
|
279
|
279
|
|
280
|
280
|
/**
|
281
|
|
- * Checks if the browser supposrts getDisplayMedia.
|
282
|
|
- * @returns {boolean} {@code true} if the browser supposrts getDisplayMedia.
|
|
281
|
+ * Checks if the browser supports getDisplayMedia.
|
|
282
|
+ * @returns {boolean} {@code true} if the browser supports getDisplayMedia.
|
283
|
283
|
*/
|
284
|
284
|
supportsGetDisplayMedia() {
|
285
|
285
|
return typeof navigator.getDisplayMedia !== 'undefined'
|
286
|
|
- || typeof navigator.mediaDevices.getDisplayMedia !== 'undefined';
|
|
286
|
+ || (typeof navigator.mediaDevices !== 'undefined'
|
|
287
|
+ && typeof navigator.mediaDevices.getDisplayMedia
|
|
288
|
+ !== 'undefined');
|
287
|
289
|
}
|
288
|
290
|
|
289
|
291
|
/**
|