fix qrbox size
This commit is contained in:
parent
0e6e648e75
commit
3df3035146
|
@ -10,7 +10,7 @@
|
||||||
const html5QrCode = new Html5Qrcode('reader')
|
const html5QrCode = new Html5Qrcode('reader')
|
||||||
const config = {
|
const config = {
|
||||||
fps: 10,
|
fps: 10,
|
||||||
qrbox: { width: 200, height: 200 },
|
qrbox: { width: (3 / 4) * width, height: (1 / 2) * height },
|
||||||
aspectRatio: width / height,
|
aspectRatio: width / height,
|
||||||
}
|
}
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
|
|
Loading…
Reference in New Issue