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

Browser compatibility #16

Open
sonph opened this issue Apr 16, 2020 · 0 comments
Open

Browser compatibility #16

sonph opened this issue Apr 16, 2020 · 0 comments
Labels
enhancement Optional, nice to have.

Comments

@sonph
Copy link
Owner

sonph commented Apr 16, 2020

Show alerts to user that the browser doesn't support certain features

  1. AudioContext
var contextClass = (window.AudioContext || 
  window.webkitAudioContext || 
  window.mozAudioContext || 
  window.oAudioContext || 
  window.msAudioContext);
if (contextClass) {
  // Web Audio API is available.
  var context = new contextClass();
} else {
  // Web Audio API is not available. Ask the user to use a supported browser.
}
  1. web worker
if (window.Worker) {

  ...

}
@sonph sonph added the enhancement Optional, nice to have. label Apr 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Optional, nice to have.
Projects
None yet
Development

No branches or pull requests

1 participant