We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c91781b commit 4d593a7Copy full SHA for 4d593a7
src/components/QrcodeStream.vue
@@ -91,7 +91,7 @@ export interface QrcodeStreamProps {
91
92
const props = withDefaults(defineProps<QrcodeStreamProps>(), {
93
// in this file: don't use `props.constraints` directly. Use `constraintsCached`.
94
- constraints: () => ({ facingMode: 'environment' }),
+ constraints: () => ({ facingMode: 'environment' } as MediaTrackConstraints),
95
// in this file: don't use `props.formats` directly. Use `formatsCached`.
96
formats: () => ['qr_code'],
97
paused: false,
0 commit comments