Skip to content

Commit

Permalink
Merge pull request #9 from teckel12/1.1.4
Browse files Browse the repository at this point in the history
Fixes issue with Safari on MacOS
  • Loading branch information
teckel12 authored Oct 10, 2023
2 parents b292e78 + d22bfe9 commit 8dc114e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@teckel/vue-barcode-reader",
"version": "1.1.3",
"version": "1.1.4",
"description": "Vue barcode and QR code scanner",
"main": "src/index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/components/StreamBarcodeReader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ export default {
if (deviceOptions.length > 0) {
// If rear facing (environment) camera(s), use only those
const environmentFacing = deviceOptions.filter(device => device.facingMode.includes('environment'))
const environmentFacing = deviceOptions.filter(device => device.facingMode?.includes('environment'))
if (environmentFacing.length > 0) {
deviceOptions = environmentFacing
}
Expand Down

0 comments on commit 8dc114e

Please sign in to comment.