File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ <h1 style="font-size: 1.5em;">Read Barcodes from a Camera</h1>
4949 */
5050 scanner . onUnduplicatedRead = ( txt , result ) => {
5151 alert ( txt ) ;
52- console . log ( "Unique Code Found: " + result ) ;
52+ console . log ( "Unique Code Found: " , result ) ;
5353 }
5454 await scanner . show ( ) ;
5555 } catch ( ex ) {
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ <h1 style="font-size: 1.5em;">Hello World for RequireJS</h1>
3535 let pScanner = null ;
3636 document . getElementById ( 'readBarcode' ) . onclick = async function ( ) {
3737 try {
38- let scanner = await ( pScanner = pScanner || BarcodeScanner . createInstance ( ) ) ;
38+ const scanner = await ( pScanner = pScanner || BarcodeScanner . createInstance ( ) ) ;
3939 scanner . onFrameRead = results => {
4040 console . log ( "Barcodes on one frame:" ) ;
4141 for ( let result of results ) {
@@ -44,7 +44,7 @@ <h1 style="font-size: 1.5em;">Hello World for RequireJS</h1>
4444 } ;
4545 scanner . onUnduplicatedRead = ( txt , result ) => {
4646 alert ( txt ) ;
47- console . log ( "Unique Code Found: " + result ) ;
47+ console . log ( "Unique Code Found: " , result ) ;
4848 }
4949 await scanner . show ( ) ;
5050 } catch ( ex ) {
You can’t perform that action at this time.
0 commit comments