Skip to content

Commit

Permalink
Merge pull request #1832 from numbersprotocol/fix-enable-torch
Browse files Browse the repository at this point in the history
fix(custom-camera.service): else case for enable torch
  • Loading branch information
bafu authored Jul 19, 2022
2 parents 63588b8 + d9afc0e commit ab04762
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ export class CustomCameraService {
if (this.isNativePlatform) {
return await PreviewCamera.enableTorch({ enable });
}
return Promise.resolve();
}

private get isNativePlatform() {
Expand Down

0 comments on commit ab04762

Please sign in to comment.