removed check for navigator.camera

Was causing a TypeError