From dd36573bb74038dc053bfe0e38d9981e3fa9b3bb Mon Sep 17 00:00:00 2001 From: Pamela Vong Date: Wed, 3 Jul 2019 17:27:40 -0400 Subject: [PATCH] fix: stream API support not detected in iOS/Chrome STREAM_API_SUPPORTED is falsey (undefined is returned for Chrome on iOS) --- src/misc/camera.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/misc/camera.js b/src/misc/camera.js index 9ec23918..3eef5937 100644 --- a/src/misc/camera.js +++ b/src/misc/camera.js @@ -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(); }