EddieLa / JOB

A Barcode scanner capapable of reading Code128, Code93, Code39, Standard/Industrial 2 of 5, Interleaved 2 of 5, Codabar and EAN-13 barcodes in javascript.
http://eddiela.github.io/JOB
600 stars 204 forks source link

Fix module exports and add ImageErrorCallback #46

Closed jfyuen closed 8 years ago

jfyuen commented 8 years ago

Fixed exporting modules for DecoderWorker and BarcodeReader, it wasn't working properly with webpack. Also add an ImageErrorCallback called when a wrong image is loaded in BarcodeReader.DecodeImage().