Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

track.getCapabilities is not available on FireFox. #72

Open
atuttle opened this issue Oct 25, 2021 · 2 comments
Open

track.getCapabilities is not available on FireFox. #72

atuttle opened this issue Oct 25, 2021 · 2 comments

Comments

@atuttle
Copy link

atuttle commented Oct 25, 2021

When attempting to use this library (via react-qr-reader) in Firefox, the error track.getCapabilities is not a function is thrown by this line:

const capabilities = track.getCapabilities();

In my testing, track.getCapabilities is defined in Chrome, but not Firefox. For my purposes, it would be sufficient if the torch feature was assumed to be unavailable if getCapabilities is not defined.

@Aspyryan
Copy link

Yea could we get an error thrown that we could catch and have proper handling for?

@gregg-cbs
Copy link

gregg-cbs commented Jul 5, 2024

Yeah still getting this error on firefox, it does not seem to affect functionality:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants