Skip to content

Conversation

@gruhn
Copy link
Owner

@gruhn gruhn commented Feb 10, 2025

The native BarcodeDetector implementation on desktop Mac seems to support PDF417 codes but when scanning (always?) returns an empty string. Thus, now falling back to polyfill under these conditions.

See: #459

The native BarcodeDetector implementation on desktop Mac seems to
support PDF417 codes but when scanning (always?) returns an empty
string. Thus, now falling back to polyfill under these conditions.

See: #459
@cloudflare-workers-and-pages
Copy link

Deploying vue-qrcode-reader with  Cloudflare Pages  Cloudflare Pages

Latest commit: 1b56055
Status: ✅  Deploy successful!
Preview URL: https://6f58f2fb.vue-qrcode-reader.pages.dev
Branch Preview URL: https://pdf417-macos.vue-qrcode-reader.pages.dev

View logs

@gruhn
Copy link
Owner Author

gruhn commented Feb 10, 2025

@joleeee Would you mind checking if this works? I have a Mac but it has no camera.

I know this fix is quite ad-hoc. I'm sure there are more situations where the native BarcodeDetector implementation is problematic. But I think the best way to find out about these cases, is to wait for users to run into them and open issues.

@joleeee
Copy link

joleeee commented Feb 11, 2025

Yup, it works @gruhn

@gruhn gruhn merged commit bb75c99 into master Feb 11, 2025
1 check passed
@gruhn gruhn deleted the pdf417-macos branch February 11, 2025 20:16
@github-actions
Copy link

🎉 This PR is included in version 5.7.1 🎉

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.

3 participants