Skip to content

Commit

Permalink
add missing onInitialized
Browse files Browse the repository at this point in the history
  • Loading branch information
xulihang committed Jul 31, 2023
1 parent 72fa392 commit 79724f2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "react-mrz-scanner",
"private": false,
"version": "1.0.0",
"version": "1.0.1",
"description": "A React component to scan MRZ on passports, visa cards, etc.",
"type": "module",
"scripts": {
Expand Down
3 changes: 3 additions & 0 deletions src/component/MRZScanner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ const MRZScanner = (props:ScannerProps): React.ReactElement => {
if (props.scanning) {
dlr.current.startScanning(true);
}
if (props.onInitialized) {
props.onInitialized(dce.current,dlr.current);
}
} catch(ex:any) {
let errMsg: string;
if (ex.message.includes("network connection error")) {
Expand Down

0 comments on commit 79724f2

Please sign in to comment.