Skip to content

Commit

Permalink
t
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfauquette committed Mar 2, 2024
1 parent dc1a004 commit 6ef4e91
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/test.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@
const capture = async () => {
try {
const barcodes = await bd.detect(video);
const value = barcodes.find(({ format }) => format === "ean_13");
const barcode = barcodes.find(({ format }) => format === "ean_13");

const value = barcode && barcode.rawValue;

if (value !== null) {
if (lastValue === value) {
Expand Down

0 comments on commit 6ef4e91

Please sign in to comment.