Skip to content

Commit 4d593a7

Browse files
authored
fix(QrcodeStream): type of constraints
See: #471
1 parent c91781b commit 4d593a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/QrcodeStream.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export interface QrcodeStreamProps {
9191
9292
const props = withDefaults(defineProps<QrcodeStreamProps>(), {
9393
// in this file: don't use `props.constraints` directly. Use `constraintsCached`.
94-
constraints: () => ({ facingMode: 'environment' }),
94+
constraints: () => ({ facingMode: 'environment' } as MediaTrackConstraints),
9595
// in this file: don't use `props.formats` directly. Use `formatsCached`.
9696
formats: () => ['qr_code'],
9797
paused: false,

0 commit comments

Comments
 (0)