mirror of
https://github.com/keepassxreboot/keepassxc-browser.git
synced 2026-03-11 08:54:43 +00:00
Merge pull request #1497 from keepassxreboot/fix/check_for_undefined
Fix check for undefined combination variable
This commit is contained in:
commit
5d6645586e
1 changed files with 4 additions and 0 deletions
|
|
@ -1540,6 +1540,10 @@ kpxc.rememberCredentialsFromContextMenu = async function() {
|
|||
|
||||
const type = el.getAttribute('type');
|
||||
const combination = await kpxcFields.getCombination(el, (type === 'password' ? type : 'username'));
|
||||
if (!combination) {
|
||||
return;
|
||||
}
|
||||
|
||||
const usernameValue = combination.username ? combination.username.value : '';
|
||||
const passwordValue = combination.password ? combination.password.value : '';
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue