File tree Expand file tree Collapse file tree
barcode-scanner-api-samples/scan-single-barcode Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ export class AppComponent {
2222 }
2323 const barcodeScanner = new BarcodeScanner ( config ) ;
2424 barcodeScanner . launch ( ) . then ( ( result ) => {
25- console . log ( result ) ;
25+ alert ( result . barcodeResults [ 0 ] . text ) ;
2626 } ) ;
2727 }
2828}
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ <h1 class="barcode-scanner-title">Hello World (Decode via Camera)</h1>
3939 }
4040 const barcodeScanner = new Dynamsoft . BarcodeScanner ( config ) ;
4141 barcodeScanner . launch ( ) . then ( ( result ) => {
42- console . log ( result ) ;
42+ alert ( result . barcodeResults [ 0 ] . text ) ;
4343 } )
4444 </ script >
4545</ body >
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ function App() {
1717 }
1818 const barcodeScanner = new BarcodeScanner ( config ) ;
1919 barcodeScanner . launch ( ) . then ( ( result ) => {
20- console . log ( result ) ;
20+ alert ( result . barcodeResults [ 0 ] . text ) ;
2121 } ) ;
2222 } )
2323 return (
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ onMounted(() => {
1616 }
1717 const barcodeScanner = new BarcodeScanner (config );
1818 barcodeScanner .launch ().then ((result )=> {
19- console . log (result );
19+ alert (result . barcodeResults [ 0 ]. text );
2020 });
2121})
2222 </script >
You can’t perform that action at this time.
0 commit comments