mirror of
https://github.com/keepassxreboot/keepassxc-browser.git
synced 2026-03-11 08:54:43 +00:00
Merge pull request #24 from keepassxreboot/type_check_fix
Fixes checking an input type
This commit is contained in:
commit
b498b76a02
1 changed files with 2 additions and 2 deletions
|
|
@ -1446,7 +1446,7 @@ cip.fillInFromActiveElement = function(suppressWarnings, passOnly = false) {
|
|||
cipFields.setUniqueId(jQuery(el));
|
||||
const fieldId = cipFields.prepareId(jQuery(el).attr('data-cip-id'));
|
||||
let combination = null;
|
||||
if ($(el).toType === 'password') {
|
||||
if ($(el).attr('type') === 'password') {
|
||||
combination = cipFields.getCombination('password', fieldId);
|
||||
}
|
||||
else {
|
||||
|
|
@ -1695,7 +1695,7 @@ cip.contextMenuRememberCredentials = function() {
|
|||
cipFields.setUniqueId(jQuery(el));
|
||||
const fieldId = cipFields.prepareId(jQuery(el).attr('data-cip-id'));
|
||||
let combination = null;
|
||||
if ($(el).toType === 'password') {
|
||||
if ($(el).attr('type') === 'password') {
|
||||
combination = cipFields.getCombination('password', fieldId);
|
||||
}
|
||||
else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue