Skip to content

Commit aa3a38a

Browse files
committed
fix: show guidebox after cvRouter starts capturing
1 parent ee864d7 commit aa3a38a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

js/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ function startCapturing(mode) {
3131
cameraEnhancer.setScanRegion(region());
3232
cameraView.setScanRegionMaskVisible(false);
3333

34+
await cvRouter.startCapturing(SCAN_TEMPLATES[mode]);
35+
3436
// Show MRZ guide frame
3537
mrzGuideFrame.style.display = "inline-block";
3638

37-
await cvRouter.startCapturing(SCAN_TEMPLATES[mode]);
38-
3939
// Update button styles to show selected scan mode
4040
document.querySelectorAll(".scan-option-btn").forEach((button) => {
4141
button.classList.remove("selected");

0 commit comments

Comments
 (0)