zxing-js / library

Multi-format 1D/2D barcode image processing library, usable in JavaScript ecosystem.
https://zxing-js.github.io/library/
Apache License 2.0
2.51k stars 547 forks source link

Update MultiFormatReader example in README.md #510

Closed inokawa closed 2 years ago

inokawa commented 2 years ago

If we call decode of MultiFormatReader without hints argument, this.hints seems overrided with undefined.

https://github.com/zxing-js/library/blob/89c4c2350f30ac844daa7400743b9a14b3f692a8/src/core/MultiFormatReader.ts#L72-L75 https://github.com/zxing-js/library/blob/89c4c2350f30ac844daa7400743b9a14b3f692a8/src/core/MultiFormatReader.ts#L101-L102