Merge pull request #24 from keepassxreboot/type_check_fix

Fixes checking an input type
This commit is contained in:
Janek Bevendorff 2018-03-04 23:26:47 +01:00 committed by GitHub
commit b498b76a02
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 {