mirror of
https://github.com/keepassxreboot/keepassxc-browser.git
synced 2026-03-11 08:54:43 +00:00
Make input field type detection case insensitive
This commit is contained in:
parent
2c88d1716e
commit
bd8afc24b3
1 changed files with 6 additions and 1 deletions
|
|
@ -1260,7 +1260,12 @@ cipObserverHelper.getInputs = function(target) {
|
|||
// Only include input fields that match with cipObserverHelper.inputTypes
|
||||
let inputs = [];
|
||||
for (const i of inputFields) {
|
||||
if (cipObserverHelper.inputTypes.includes(i.getAttribute('type'))) {
|
||||
let type = i.getAttribute('type');
|
||||
if (type) {
|
||||
type = type.toLowerCase();
|
||||
}
|
||||
|
||||
if (cipObserverHelper.inputTypes.includes(type)) {
|
||||
inputs.push(i);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue