Files
canteen-asset-tracker/static
shawn 3859d9d555 fix: barcode scanner — hints not applied, per-frame errors killing scanner
Root cause #1: BrowserMultiFormatReader constructor takes 0 args so hints
and timing options (passed as args) were silently ignored. Hints are now
applied as reader.reader.hints, and timing as instance properties.

Root cause #2: ZXing per-frame 'no barcode' exceptions have message=undefined
causing .toLowerCase() to crash in old message-text filter. Switched to
instanceof checks against NotFoundException, ChecksumException, FormatException
which properly distinguishes normal 'no barcode' frames from real errors.

Tested in browser — hint setting and error filtering both verified working.
2026-06-02 18:09:03 -04:00
..
2026-06-01 23:28:45 -04:00