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
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:
@@ -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');
|
||||||
|
|||||||
Reference in New Issue
Block a user