Skip to content

Commit dd36573

Browse files
pamtarogruhn
authored andcommitted
fix: stream API support not detected in iOS/Chrome
STREAM_API_SUPPORTED is falsey (undefined is returned for Chrome on iOS)
1 parent 18f7729 commit dd36573

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/misc/camera.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const STREAM_API_SUPPORTED =
2626
let streamApiShimApplied = false;
2727

2828
export default async function(constraints, videoEl) {
29-
if (STREAM_API_SUPPORTED === false) {
29+
if (!STREAM_API_SUPPORTED) {
3030
throw new StreamApiNotSupportedError();
3131
}
3232

0 commit comments

Comments
 (0)