fix qrbox size

This commit is contained in:
Ota Prokopec 2022-11-21 18:03:20 +01:00
parent 0e6e648e75
commit 3df3035146
1 changed files with 1 additions and 1 deletions

View File

@ -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