Skip to content
This repository was archived by the owner on Apr 11, 2024. It is now read-only.

Commit f2e7b4f

Browse files
committed
Fix getDisplayMedia test
Includes the correct way and the mistaken way in case the spec changes.
1 parent 4e559a6 commit f2e7b4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/9/engine.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1482,7 +1482,7 @@ Test9 = (function () {
14821482
function (results) {
14831483
results.addItem({
14841484
key: 'media.getDisplayMedia',
1485-
passed: !!navigator.mediaDevices && !!navigator.mediaDevices.getDisplayMedia ? YES : NO
1485+
passed: !!navigator.getDisplayMedia || (!!navigator.mediaDevices && !!navigator.mediaDevices.getDisplayMedia) ? YES : NO
14861486
});
14871487
},
14881488

0 commit comments

Comments
 (0)