Skip to content

Commit c0dfa1d

Browse files
authored
fix: always use BarcodeDetector polyfill
See: #459, #470
1 parent 4d593a7 commit c0dfa1d

File tree

4 files changed

+177
-97
lines changed

4 files changed

+177
-97
lines changed

package-lock.json

Lines changed: 164 additions & 38 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/QrcodeStream.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,9 +272,9 @@ watch(
272272
)
273273
274274
// `setScanningFormats` will create a new BarcodeDetector instance with the given formats.
275-
watch(formatsCached, async (formats) => {
275+
watch(formatsCached, (formats) => {
276276
if (isMounted.value) {
277-
await setScanningFormats(formats)
277+
setScanningFormats(formats)
278278
}
279279
})
280280

0 commit comments

Comments
 (0)