mirror of
https://github.com/keepassxreboot/keepassxc-browser.git
synced 2026-03-11 08:54:43 +00:00
Improve the iconType check
This commit is contained in:
parent
d5fec38409
commit
87d8526d77
1 changed files with 1 additions and 1 deletions
|
|
@ -10,7 +10,7 @@ kpxcIcons.iconTypes = { USERNAME: 0, PASSWORD: 1, TOTP: 2 };
|
|||
|
||||
// Adds an icon to input field
|
||||
kpxcIcons.addIcon = async function(field, iconType) {
|
||||
if (!field || iconType < 0 || iconType > 2) {
|
||||
if (!field || !Object.values(kpxcIcons.iconTypes).includes(iconType)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue