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

Avoid errors in unsupported environments #4

Closed
PsychoLlama opened this issue Feb 23, 2021 · 0 comments
Closed

Avoid errors in unsupported environments #4

PsychoLlama opened this issue Feb 23, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@PsychoLlama
Copy link
Owner

media-devices currently throws an error immediately after loading in an unsupported environment. You can observe this by importing from Node. Things should fail when you try to call methods, not when you import.

@PsychoLlama PsychoLlama added the bug Something isn't working label Feb 23, 2021
PsychoLlama added a commit that referenced this issue Feb 24, 2021
See: #4

This guards media device API calls behind support detection allowing you
to import it in places like Node or insecure browser contexts.
PsychoLlama added a commit that referenced this issue Feb 24, 2021
See: #4

This guards media device API calls behind support detection allowing you
to import it in places like Node or insecure browser contexts.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant