You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The library internally utilizes 3rd party 'qrcode' module for QR-code decoding tasks. However there is not sufficient abstraction such that assigning 'qrcode' to something else externally to the library will cause the library to fail and flag errors such as qrcode.decode() failures.
To Reproduce
Steps to reproduce the behavior:
Assign qrcode to something else after Html5Qrcode has been initialized:
const html5QrCode = new Html5Qrcode(/* element id */ "reader");
var qrcode = '';
Start html5QrCode as usual, but parse the error.
Observed error:
QR code parse error, error = TypeError: qrcode.decode is not a function
Expected behavior
It would be ideal to have sufficient abstraction such that assigning 'qrcode' externally to something else will not cause the library to break. Either that or mention it as a reserved word in the README.
Screenshots
N/A
Desktop (please complete the following information):
Any
Smartphone (please complete the following information):
Any
Additional context
N/A
Thanks!
Andrew
The text was updated successfully, but these errors were encountered:
Describe the bug
The library internally utilizes 3rd party 'qrcode' module for QR-code decoding tasks. However there is not sufficient abstraction such that assigning 'qrcode' to something else externally to the library will cause the library to fail and flag errors such as qrcode.decode() failures.
To Reproduce
Steps to reproduce the behavior:
Start html5QrCode as usual, but parse the error.
Observed error:
Expected behavior
It would be ideal to have sufficient abstraction such that assigning 'qrcode' externally to something else will not cause the library to break. Either that or mention it as a reserved word in the README.
Screenshots
N/A
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
N/A
Thanks!
Andrew
The text was updated successfully, but these errors were encountered: