1
0
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:
Kyle Spearrin
2018-04-23 10:02:30 -04:00
parent 271f9df8ae
commit 06e56f0b57
5 changed files with 18 additions and 24 deletions

View File

@@ -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 });
}