Skip to content

Commit

Permalink
Fix: hide id document frame when eaching permission
Browse files Browse the repository at this point in the history
  • Loading branch information
ayinloya committed Sep 3, 2024
1 parent 690463a commit 92232d4
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,9 @@ class DocumentCapture extends HTMLElement {
this.shadowRoot.querySelector('#loader').hidden = true;
this.shadowRoot.querySelector('.id-video').hidden = false;
this.shadowRoot.querySelector('.actions').hidden = false;
if (!videoExists) {
videoContainer.prepend(canvas);
}
};

const onVideoStart = () => {
Expand All @@ -399,10 +402,6 @@ class DocumentCapture extends HTMLElement {

video.addEventListener('playing', onVideoStart);

if (!videoExists) {
videoContainer.prepend(canvas);
}

this._IDStream = stream;
this._IDVideo = video;
}
Expand Down

0 comments on commit 92232d4

Please sign in to comment.