From c0b3b1fc94bdce7c9968f1e948ee6a103d2a86c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antoni=20Nu=C3=B1ez=20Romeu?= Date: Fri, 26 Jun 2026 23:28:01 +0200 Subject: [PATCH] Scanner view --- frontend/src/views/ScannerView.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/views/ScannerView.jsx b/frontend/src/views/ScannerView.jsx index e8a0eb1..61a9410 100644 --- a/frontend/src/views/ScannerView.jsx +++ b/frontend/src/views/ScannerView.jsx @@ -83,7 +83,7 @@ function ScannerView({ onClose, onSelectMedicine }) { setPhase('scanning'); const result = await BarcodeScanner.scan({ - formats: [BarcodeFormat.Code128, BarcodeFormat.QrCode], + formats: [BarcodeFormat.PDF417, BarcodeFormat.Code128, BarcodeFormat.QrCode], autoZoom: true, }); @@ -121,7 +121,7 @@ function ScannerView({ onClose, onSelectMedicine }) { let detector; try { - detector = new BarcodeDetector({ formats: ['code_128', 'qr_code'] }); + detector = new BarcodeDetector({ formats: ['pdf417', 'code_128', 'qr_code'] }); } catch { setErrorMsg('Barcode detection is not supported in this browser.'); setPhase('error');