Skip to content

Commit

Permalink
fix: show guidebox after cvRouter starts capturing
Browse files Browse the repository at this point in the history
  • Loading branch information
felixindrawan committed Aug 28, 2024
1 parent ee864d7 commit aa3a38a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ function startCapturing(mode) {
cameraEnhancer.setScanRegion(region());
cameraView.setScanRegionMaskVisible(false);

await cvRouter.startCapturing(SCAN_TEMPLATES[mode]);

// Show MRZ guide frame
mrzGuideFrame.style.display = "inline-block";

await cvRouter.startCapturing(SCAN_TEMPLATES[mode]);

// Update button styles to show selected scan mode
document.querySelectorAll(".scan-option-btn").forEach((button) => {
button.classList.remove("selected");
Expand Down

0 comments on commit aa3a38a

Please sign in to comment.