mirror of
https://github.com/bitwarden/browser
synced 2025-12-19 09:43:23 +00:00
copy totp from each implementation of autofill
This commit is contained in:
@@ -134,12 +134,11 @@ export class CurrentTabComponent implements OnInit, OnDestroy {
|
||||
const totpCode = await this.autofillService.doAutoFill({
|
||||
cipher: cipher,
|
||||
pageDetails: this.pageDetails,
|
||||
fromBackground: false,
|
||||
doc: window.document,
|
||||
});
|
||||
|
||||
this.analytics.eventTrack.next({ action: 'Autofilled' });
|
||||
if (totpCode != null && this.platformUtilsService.isFirefox()) {
|
||||
if (totpCode != null) {
|
||||
this.platformUtilsService.copyToClipboard(totpCode, { doc: window.document });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user