qr-code-scanner
qr-code-scanner copied to clipboard
DOMException on page reload
Hi there
I've been experimenting with your app and found an issue.
On reloading the page with my notebook, it returned an exception (DOMException: Could not start video source).
After trying a few things, I figured out the problem. On my notebook, it tried to access the IR camera and thus somehow couldn't free it up afterwards.
I solved it by adding
&& !device.label.includes('IR')
to the if statement mentioned below.
Maybe there's another way to solve it.
Best regards Luke
https://github.com/code-kotis/qr-code-scanner/blob/ec539ff0ca4668802ac3f6dd4099ae424922c84a/app/js/vendor/qrscan.js#L78