1
0
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:
Kyle Spearrin
2017-09-22 15:31:31 -04:00
parent 5089cbded6
commit eace0f32f0
3 changed files with 15 additions and 9 deletions

View File

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