Skip to content

Commit c176738

Browse files
authored
Fix style.
1 parent 23b352a commit c176738

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

components/BarcodeScanner.vue

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,7 @@ export default {
9898
{deviceId: {exact: selectedCameraId.value ?? defaultCameraId}},
9999
getCameraScanConfig(),
100100
onScanSuccess,
101-
onError
102-
);
101+
onError);
103102
if(!selectedCameraId.value && cameraList.value.length) {
104103
const selectedCamera = scanner.getRunningTrackSettings()?.deviceId;
105104
updateSelectedCamera(selectedCamera);
@@ -214,7 +213,7 @@ export default {
214213
function getCameraScanConfig() {
215214
const width = window.innerWidth;
216215
const height = window.innerHeight;
217-
// Must parse float aspect ratio value
216+
// must parse float aspect ratio value
218217
const landscapeAspectRatio = parseFloat((width / height).toFixed(3));
219218
const portraitAspectRatio = parseFloat((height / width).toFixed(3));
220219
return {

0 commit comments

Comments
 (0)