Hide the 'take photo' button when there isn't a camera.

This commit is contained in:
Diana Huang
2013-09-20 10:59:17 -04:00
parent 97b738bc79
commit 94f6bb66d2

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);