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

useMediaDevices(): TypeError: Cannot read property 'addEventListener' of undefined #820

Closed
tayay opened this issue Dec 5, 2019 · 1 comment · Fixed by #830
Closed

useMediaDevices(): TypeError: Cannot read property 'addEventListener' of undefined #820

tayay opened this issue Dec 5, 2019 · 1 comment · Fixed by #830
Labels
bug Something isn't working help wanted Extra attention is needed
Projects

Comments

@tayay
Copy link

tayay commented Dec 5, 2019

I use useMediaDevices().
An error occurs when navigator.mediaDevices is undefined.
Is it possible to prevent an error even if navigator.mediaDevices is undefined?
thanks.

WS000000

@streamich streamich added the bug Something isn't working label Dec 5, 2019
@streamich streamich added this to To do in react-use via automation Dec 5, 2019
@streamich streamich added the help wanted Extra attention is needed label Dec 10, 2019
@OBe95
Copy link
Contributor

OBe95 commented Dec 11, 2019

Hi @streamich, I just created a PR for this issue

react-use automation moved this from To do to Done Feb 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
react-use
  
Done
Development

Successfully merging a pull request may close this issue.

3 participants