veryfi-lens-wasm 3.1.3 → 3.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/core/constants.js +1 -1
- package/core/state.js +0 -1
- package/core/ui-renderer.js +4 -2
- package/package.json +1 -1
package/core/constants.js
CHANGED
package/core/state.js
CHANGED
package/core/ui-renderer.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { state, refs, actions } from './state.js';
|
|
2
2
|
import { hideVideoOverlay, showVideoOverlay } from './overlay-controls.js';
|
|
3
3
|
import { toggleTorchLight, mirrorVideo, switchCamera } from './camera.js';
|
|
4
|
-
import { ensurePackageUploaded } from './api.js';
|
|
4
|
+
import { ensurePackageUploaded, handleSubmit } from './api.js';
|
|
5
5
|
import { createVideo } from '../components/video.js';
|
|
6
6
|
import { createBlurModal } from '../components/blurModal.js';
|
|
7
7
|
import { createDocumentModal } from '../components/documentModal.js';
|
|
@@ -102,8 +102,10 @@ const getModalSubmitHandler = () => {
|
|
|
102
102
|
} else if (typeof state.customSubmitHandler === 'function') {
|
|
103
103
|
const packageInfo = await ensurePackageUploaded();
|
|
104
104
|
state.customSubmitHandler(state.finalImage, packageInfo);
|
|
105
|
+
actions.removeOverlay?.();
|
|
105
106
|
} else {
|
|
106
|
-
|
|
107
|
+
handleSubmit(state.finalImage);
|
|
108
|
+
actions.removeOverlay?.();
|
|
107
109
|
}
|
|
108
110
|
};
|
|
109
111
|
};
|