mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 16:23:44 +00:00
Merge pull request #1517 from wusatosi/patch-1
Improved readability as #1441
This commit is contained in:
@@ -254,7 +254,7 @@ export default class AutofillService implements AutofillServiceInterface {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const autoFillResponse = await this.doAutoFill({
|
const totpCode = await this.doAutoFill({
|
||||||
cipher: cipher,
|
cipher: cipher,
|
||||||
pageDetails: pageDetails,
|
pageDetails: pageDetails,
|
||||||
skipTotp: !fromCommand,
|
skipTotp: !fromCommand,
|
||||||
@@ -265,12 +265,12 @@ export default class AutofillService implements AutofillServiceInterface {
|
|||||||
fillNewPassword: fromCommand,
|
fillNewPassword: fromCommand,
|
||||||
});
|
});
|
||||||
|
|
||||||
// Only update last used index if doAutoFill didn't throw an exception
|
// Update last used index as autofill has succeed
|
||||||
if (fromCommand) {
|
if (fromCommand) {
|
||||||
this.cipherService.updateLastUsedIndexForUrl(tab.url);
|
this.cipherService.updateLastUsedIndexForUrl(tab.url);
|
||||||
}
|
}
|
||||||
|
|
||||||
return autoFillResponse;
|
return totpCode;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Helpers
|
// Helpers
|
||||||
|
|||||||
Reference in New Issue
Block a user