mirror of
https://github.com/keepassxreboot/keepassxc-browser.git
synced 2026-03-11 08:54:43 +00:00
Fixed typeof check
This commit is contained in:
parent
24fcb882de
commit
6de9c5a5c3
1 changed files with 1 additions and 4 deletions
|
|
@ -1483,10 +1483,7 @@ cip.setValueWithChange = function(field, value) {
|
|||
|
||||
if (cip.settings.respectMaxLength === true) {
|
||||
const attribute_maxlength = field.attr('maxlength');
|
||||
if (typeof attribute_maxlength !== typeof undefined &&
|
||||
$.isNumeric(attribute_maxlength) === true &&
|
||||
attribute_maxlength > 0) {
|
||||
|
||||
if (attribute_maxlength && $.isNumeric(attribute_maxlength) === true && attribute_maxlength > 0) {
|
||||
value = value.substr(0, attribute_maxlength);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue