Merge pull request #1076 from edx/diana/hide-button-when-no-camera

Hide the 'take photo' button when there isn't a camera.
This commit is contained in:
Diana Huang
2013-09-20 08:25:00 -07:00

View File

@@ -1,6 +1,8 @@
var onVideoFail = function(e) {
if(e == 'NO_DEVICES_FOUND') {
$('#no-webcam').show();
$('#face_capture_button').hide();
$('#photo_id_capture_button').hide();
}
else {
console.log('Failed to get camera access!', e);