1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 00:33:44 +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

@@ -260,13 +260,15 @@ function initAutofill() {
if (code) {
self.utilsService.copyToClipboard(code);
}
return code;
});
}
if (didAutofill) {
if (totpPromise) {
totpPromise.then(function () {
deferred.resolve();
totpPromise.then(function (totpCode) {
deferred.resolve(totpCode);
});
}
else {