Update keepassxc-browser.js

feat: support multi auto fill
This commit is contained in:
wolfsilver 2024-08-19 13:10:02 +08:00 committed by GitHub
parent aba4ffc5e1
commit 9ca28c119e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;
}
});
}
}
};
/**