mirror of
https://github.com/bitwarden/browser
synced 2025-12-18 01:03:35 +00:00
copy totp to clipboard from popup document in ff
This commit is contained in:
@@ -72,8 +72,11 @@ angular
|
||||
toastr.error(i18nService.autofillError);
|
||||
}
|
||||
|
||||
autofillService.doAutoFill(login, pageDetails, false).then(function () {
|
||||
autofillService.doAutoFill(login, pageDetails, false).then(function (totpCode) {
|
||||
$analytics.eventTrack('Autofilled');
|
||||
if (totpCode && utilsService.isFirefox()) {
|
||||
utilsService.copyToClipboard(totpCode, document);
|
||||
}
|
||||
$window.close();
|
||||
}, function () {
|
||||
$analytics.eventTrack('Autofilled Error');
|
||||
|
||||
Reference in New Issue
Block a user