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

Change the QR scanning library to nimiq/qr-scanner #8

Merged
merged 5 commits into from Dec 23, 2021

Conversation

ttycelery
Copy link
Owner

@ttycelery ttycelery commented Dec 23, 2021

Summary

As a follow-up of #5, this PR removes the implementation of mebjas/html5-qrcode due to its unreliability in scanning QR codes especially when the QR code is in a Google Meet screenshot. As its replacement, this PR implements nimiq/qr-scanner as advised in #5.

Some tests have been performed on this implementation. Those tests have proved an increased reliablity when scanning QR code. All QR code that can't be scanned by mebjas/html5-qrcode can be scanned by `nimiq/qr-scanner

As a consequence of this library switch, a significant portion of the UI have also been adjusted. The in-place camera scan (provided by default by the previous library) has also been removed and replaced by a classical file input (scanning by camera is still possible, just not directly in the browser).


Fixes: #4 #5
Signed-off-by: Faiz Jazadi me@lcat.dev

This commit adjusts the necessary files that was previously using
`mebas/html5-qrcode`.
The adjustments include removing unnecessary css rules, editing the
layout of the main page, and adjusting the functions inside
`praesentia.js`.
This is not final and needs a lot of testing and improvements.
@ttycelery ttycelery linked an issue Dec 23, 2021 that may be closed by this pull request
@ttycelery ttycelery merged commit bf2f183 into main Dec 23, 2021
@ttycelery ttycelery deleted the nimiq-qr-switch branch December 23, 2021 14:22
ttycelery added a commit that referenced this pull request Nov 2, 2023
Change the QR scanning library to `nimiq/qr-scanner`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unreliable QR scanning on a screenshot Change html5-qrcode implementation to use Pro Mode
1 participant