react-zxing icon indicating copy to clipboard operation
react-zxing copied to clipboard

Qr-reader doesn't work on production

Open layfrv opened this issue 1 year ago • 0 comments

Qr-reader doesn't work on production because of this problem: "Canvas2D: Multiple readback operations using getImageData are faster with the willReadFrequently attribute set to true".

I tried to change HTMLCanvasElement.prototype and added "canvas.setAttribute("willReadFrequently", "true")". It helps, but it's bad practice

layfrv avatar Oct 22 '24 08:10 layfrv