Skip to content
This repository has been archived by the owner on Nov 6, 2019. It is now read-only.

Commit

Permalink
Fix Android Error Message
Browse files Browse the repository at this point in the history
  • Loading branch information
chdanielmueller committed Jan 9, 2018
1 parent 9546e5d commit fa2f9ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/camera/camera.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ export class CameraComponent {
});
})
.catch(err => {
if (err === 'Camera already started!') {
if (err.indexOf('Camera already started') !== -1) {
this.cameraPreview.setFlashMode('auto')
.then(() => {

Expand Down

0 comments on commit fa2f9ab

Please sign in to comment.