Skip to content

Commit

Permalink
fix: stream API support not detected in iOS/Chrome
Browse files Browse the repository at this point in the history
STREAM_API_SUPPORTED is falsey (undefined is returned for Chrome on iOS)
  • Loading branch information
pamtaro authored and gruhn committed Jul 5, 2019
1 parent 18f7729 commit dd36573
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/misc/camera.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const STREAM_API_SUPPORTED =
let streamApiShimApplied = false;

export default async function(constraints, videoEl) {
if (STREAM_API_SUPPORTED === false) {
if (!STREAM_API_SUPPORTED) {
throw new StreamApiNotSupportedError();
}

Expand Down

0 comments on commit dd36573

Please sign in to comment.