Scanner view
Build & Push Docker Images / test-backend (push) Successful in 21s
Build & Push Docker Images / test-frontend (push) Successful in 24s
Build & Push Docker Images / build-backend (push) Successful in 18s
Build & Push Docker Images / build-frontend (push) Successful in 26s

This commit is contained in:
Antoni Nuñez Romeu
2026-06-26 23:28:01 +02:00
parent 1aad9761d1
commit c0b3b1fc94
+2 -2
View File
@@ -83,7 +83,7 @@ function ScannerView({ onClose, onSelectMedicine }) {
setPhase('scanning'); setPhase('scanning');
const result = await BarcodeScanner.scan({ const result = await BarcodeScanner.scan({
formats: [BarcodeFormat.Code128, BarcodeFormat.QrCode], formats: [BarcodeFormat.PDF417, BarcodeFormat.Code128, BarcodeFormat.QrCode],
autoZoom: true, autoZoom: true,
}); });
@@ -121,7 +121,7 @@ function ScannerView({ onClose, onSelectMedicine }) {
let detector; let detector;
try { try {
detector = new BarcodeDetector({ formats: ['code_128', 'qr_code'] }); detector = new BarcodeDetector({ formats: ['pdf417', 'code_128', 'qr_code'] });
} catch { } catch {
setErrorMsg('Barcode detection is not supported in this browser.'); setErrorMsg('Barcode detection is not supported in this browser.');
setPhase('error'); setPhase('error');