Skip to content

Commit

Permalink
Check agent mode support again in selfie capture when setting up
Browse files Browse the repository at this point in the history
  • Loading branch information
ayinloya committed Aug 28, 2024
1 parent 4f50e27 commit 9b94639
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -861,8 +861,7 @@ class SelfieCaptureScreen extends HTMLElement {
return;
}

const supportAgentMode =
this.hasAgentSupport ?? (await SmartCamera.supportsAgentMode());
const supportAgentMode = await SmartCamera.supportsAgentMode();

if (supportAgentMode || this.hasAttribute('show-agent-mode-for-tests')) {
this.switchCamera.hidden = false;
Expand Down

0 comments on commit 9b94639

Please sign in to comment.