Merge pull request #1296 from keepassxreboot/fix/fill_from_popup

Fix filling from popup
This commit is contained in:
Sami Vänttinen 2021-04-03 15:31:00 +03:00 committed by GitHub
commit 4a1a66b785
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 4 deletions

View file

@ -943,7 +943,13 @@ kpxc.fillFromPopup = async function(id, uuid) {
}
await sendMessage('page_set_login_id', id);
kpxc.fillInCredentials(kpxc.combinations[0], kpxc.credentials[id].login, uuid);
const selectedCredentials = kpxc.credentials.find(c => c.uuid === uuid);
if (!selectedCredentials) {
console.log('Error: Uuid not found: ', uuid);
return;
}
kpxc.fillInCredentials(kpxc.combinations[0], selectedCredentials.login, uuid);
kpxcUserAutocomplete.closeList();
};
@ -1064,6 +1070,7 @@ kpxc.fillInCredentials = async function(combination, predefinedUsername, uuid, p
// Find the correct credentials
const selectedCredentials = kpxc.credentials.find(c => c.uuid === uuid);
if (!selectedCredentials) {
console.log('Error: Uuid not found: ', uuid);
return;
}

View file

@ -1,8 +1,8 @@
{
"manifest_version": 2,
"name": "KeePassXC-Browser",
"version": "1.7.7",
"version_name": "1.7.7",
"version": "1.7.8",
"version_name": "1.7.8",
"description": "__MSG_extensionDescription__",
"author": "KeePassXC Team",
"icons": {

View file

@ -1,6 +1,6 @@
{
"name": "KeePassXC-Browser",
"version": "1.7.7",
"version": "1.7.8",
"description": "KeePassXC-Browser",
"main": "build.js",
"devDependencies": {