mirror of
https://github.com/bitwarden/browser
synced 2025-12-12 14:23:32 +00:00
don't display totp capture when in popout
This commit is contained in:
@@ -65,10 +65,15 @@ export class LoginDetailsSectionComponent implements OnInit {
|
|||||||
newPasswordGenerated: boolean;
|
newPasswordGenerated: boolean;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Whether the TOTP field can be captured from the current tab. Only available in the browser extension.
|
* Whether the TOTP field can be captured from the current tab. Only available in the browser extension and
|
||||||
|
* when not in a popout window.
|
||||||
*/
|
*/
|
||||||
get canCaptureTotp() {
|
get canCaptureTotp() {
|
||||||
return this.totpCaptureService != null && this.loginDetailsForm.controls.totp.enabled;
|
return (
|
||||||
|
window.location.href.indexOf("uilocation=popout") === -1 &&
|
||||||
|
this.totpCaptureService != null &&
|
||||||
|
this.loginDetailsForm.controls.totp.enabled
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
private datePipe = inject(DatePipe);
|
private datePipe = inject(DatePipe);
|
||||||
|
|||||||
Reference in New Issue
Block a user