Skip to content

Commit

Permalink
Hide CameraSelectionContainer when only one camera (#607)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamwolf authored Nov 17, 2022
1 parent fde2e3c commit e0ae410
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/html5-qrcode-scanner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,7 @@ export class Html5QrcodeScanner {
"select", this.getCameraSelectionId());
if (numCameras === 1) {
// If only one camera is found, don't show camera selection.
cameraSelectionSelect.style.display = "none";
cameraSelectionContainer.style.display = "none";
} else {
// Otherwise, show the number of cameras found as well.
const selectCameraString = Html5QrcodeScannerStrings.selectCamera();
Expand Down

0 comments on commit e0ae410

Please sign in to comment.