Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: native BarocdeDetector doesn't support requested formats #451

Merged
merged 2 commits into from
Sep 20, 2024

Conversation

gruhn
Copy link
Owner

@gruhn gruhn commented Sep 19, 2024

Previously we always used the native BarocdeDetector implementation if available. However, the native API might be available but does not support the barcode formats requested by the user. For example, "qr_code" might be supported but the user wants to scan ["qr_code", "aztec"]. In these cases, we now also fallback to the polyfill implementation.

Closes #450

Copy link

cloudflare-workers-and-pages bot commented Sep 19, 2024

Deploying vue-qrcode-reader with  Cloudflare Pages  Cloudflare Pages

Latest commit: 575df0d
Status: ✅  Deploy successful!
Preview URL: https://e4fbbda9.vue-qrcode-reader.pages.dev
Branch Preview URL: https://check-supported-barcode-form.vue-qrcode-reader.pages.dev

View logs

@gruhn
Copy link
Owner Author

gruhn commented Sep 19, 2024

@wosiwq Can you go to either one of these preview URLs above and check if this works for you?

Previously we always used the native `BarocdeDetector` implementation if
available. However, the native API might be available but does not
support the barcode formats requested by the user. For example, `"qr_code"`
might be supported but the user wants to scan `["qr_code", "aztec"]`.
In these cases, we now also fallback to the polyfill implementation.

Closes #450
@gruhn gruhn force-pushed the check-supported-barcode-formats branch from 5fd0f9c to e7efc03 Compare September 19, 2024 15:42
@wosiwq
Copy link
Contributor

wosiwq commented Sep 20, 2024

apologize for getting back to you so late due to the time zone, after my testing this version works fine in my environment. #450 is no longer the case

Copy link
Contributor

@wosiwq wosiwq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here are some typo's need to fix

docs/api/QrcodeStream.md Outdated Show resolved Hide resolved
@gruhn gruhn merged commit 7dcd6c8 into master Sep 20, 2024
1 check passed
Copy link

🎉 This PR is included in version 5.5.9 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BarcodeDetector not work in some of the application's built-in browser
2 participants