qrcodejs
qrcodejs copied to clipboard
Canvas drawing fails possibly because detection is faulty or browser buggy? Please allow user to override.
I use a variant of Firefox with privacy enhancements, I also have ad-blocker and privacy settings (and possibly I changed some settings in config about Canvas, I am not sure).
So, I followed the basic example you provided and all I got was a drawing of vertical blue-black bars. it was not a qr-code. And I have observed the following warning in the console:
Blocked http://.... from extracting canvas data because no user input was detected.
I solved the issue by forcing non-canvas drawing like:
_isSupportCanvas() { return false; }
So, either canvas detection is not right or it does not detect that I disabled it or I have an older/messed up browser. It's most likely not your fault but:
can I suggest that you provide an option for table or canvas rendering? So that users can switch off canvas if anything weird happens.