Fix filling from popup

This commit is contained in:
varjolintu 2021-04-02 21:33:37 +03:00
parent a0bf794a3d
commit 73971efb7b
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": {