mirror of
https://github.com/keepassxreboot/keepassxc-browser.git
synced 2026-03-11 08:54:43 +00:00
Update keepassxc-browser.js
feat: support multi auto fill
This commit is contained in:
parent
aba4ffc5e1
commit
9ca28c119e
1 changed files with 13 additions and 0 deletions
|
|
@ -513,6 +513,19 @@ kpxc.prepareCredentials = async function() {
|
|||
|
||||
kpxc.initLoginPopup();
|
||||
kpxc.initAutocomplete();
|
||||
|
||||
if (kpxc.settings.autoFillSingleEntry) {
|
||||
const pageUuid = await sendMessage('page_get_login_id');
|
||||
if (pageUuid) {
|
||||
kpxc.credentials.some(c => {
|
||||
if (c.uuid === pageUuid) {
|
||||
const index = kpxc.combinations.length - 1;
|
||||
kpxcFill.fillInCredentials(kpxc.combinations[index], c.login, c.uuid);
|
||||
return true;
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue