mirror of
https://github.com/keepassxreboot/keepassxc-browser.git
synced 2026-03-11 08:54:43 +00:00
Merge pull request #1988 from keepassxreboot/fix/fill_from_combination_2nd
Use the first combination if active element is not found
This commit is contained in:
commit
65ad31d30f
1 changed files with 2 additions and 2 deletions
|
|
@ -48,8 +48,8 @@ kpxcFill.fillInFromActiveElement = async function(passOnly = false) {
|
|||
// Fill from combination, if found
|
||||
kpxcFill.fillFromCombination = async function(elem, passOnly) {
|
||||
const combination = passOnly
|
||||
? kpxc.combinations.find(c => c.password === elem)
|
||||
: kpxc.combinations.find(c => c.username === elem);
|
||||
? kpxc.combinations.find(c => c.password === elem) ?? kpxc.combinations.find(c => c.password)
|
||||
: kpxc.combinations.find(c => c.username === elem) ?? kpxc.combinations.find(c => c.username);
|
||||
if (!combination) {
|
||||
logDebug('Error: No username/password field combination found.');
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Reference in a new issue