Skip to content

Commit

Permalink
Update index.html for BarcodeDetectionAPI (#2784)
Browse files Browse the repository at this point in the history
Fix a missing closing parenthesis in code sample.
  • Loading branch information
baptistelaget authored Mar 1, 2021
1 parent 34d1ebe commit d19954a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files/en-us/web/api/barcode_detection_api/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ <h3 id="Detect_Barcodes">Detect Barcodes</h3>
<pre class="brush: js"> barcodeDetector.detect(imageEl)
.then(barcodes =&gt; {
barcodes.forEach(barcode =&gt; console.log(barcode.rawData));
}
})
.catch(err =&gt; {
console.log(err);
})
Expand Down

0 comments on commit d19954a

Please sign in to comment.