Fix check for undefined combination variable

This commit is contained in:
varjolintu 2021-12-08 21:34:28 +02:00
parent e27115a894
commit d2fc272af2

View file

@ -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 : '';