diff --git a/keepassxc-browser/content/totp-field.js b/keepassxc-browser/content/totp-field.js index 5aa4006..e537405 100644 --- a/keepassxc-browser/content/totp-field.js +++ b/keepassxc-browser/content/totp-field.js @@ -27,7 +27,11 @@ class TOTPFieldIcon extends Icon { }; TOTPFieldIcon.prototype.initField = function(field) { - if (!field || field.getAttribute('kpxc-totp-field') === 'true' || field.offsetWidth < MINIMUM_SIZE) { + if (!field + || field.getAttribute('kpxc-totp-field') === 'true' + || field.offsetWidth < MINIMUM_SIZE + || field.size < 2 + || (field.maxLength > 0 && field.maxLength < 4)) { return; }