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(); }