Created
September 10, 2015 18:27
-
-
Save cmalven/f65e3a0d23803ac2b7d8 to your computer and use it in GitHub Desktop.
Check for availability of User Camera
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (Modernizr.getUserMedia || Modernizr.flash ) { | |
// The user has either getUserMedia or Flash available, so we can show the button. | |
$('.js-use-webcam-btn').show(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment