Files
canteen-asset-tracker/static
shawn 3fa76cc74b Fix barcode scan hanging: stop camera before API call + add 15s fetch timeout
- Stop camera scanner (stopScanning) BEFORE making the API call in
  handleBarcode — active camera stream on mobile browsers can throttle
  concurrent fetch requests, causing the lookup to hang indefinitely
- Add 15s AbortController timeout to the api() wrapper so any network
  issue shows 'Request timed out — check your connection' instead of
  hanging forever on 'looking up...'
- Both fixes together ensure the barcode lookup never hangs
2026-06-02 18:24:31 -04:00
..
2026-06-01 23:28:45 -04:00