Skip to content

Commit

Permalink
fix: set default value of config.supportedScanTypes (#521)
Browse files Browse the repository at this point in the history
  • Loading branch information
rlueder authored Oct 24, 2022
1 parent f9f8086 commit bf829fa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/html5-qrcode-scanner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,10 @@ export class Html5QrcodeScanner {
= Html5QrcodeConstants.DEFAULT_REMEMBER_LAST_CAMERA_USED;
}

if (!config.supportedScanTypes) {
config.supportedScanTypes = Html5QrcodeConstants.DEFAULT_SUPPORTED_SCAN_TYPE;
}

return config;
}

Expand Down

0 comments on commit bf829fa

Please sign in to comment.