formatting
This commit is contained in:
parent
200fa80260
commit
ea1601c32c
|
@ -850,9 +850,11 @@ export default class AutofillService implements AutofillServiceInterface {
|
||||||
pageDetails.fields.forEach((f) => {
|
pageDetails.fields.forEach((f) => {
|
||||||
const isPassword = f.type === 'password';
|
const isPassword = f.type === 'password';
|
||||||
const isLikePassword = () => f.type === 'text' &&
|
const isLikePassword = () => f.type === 'text' &&
|
||||||
((f.htmlID != null && f.htmlID.toLowerCase().indexOf('password') > 0) ||
|
(
|
||||||
|
(f.htmlID != null && f.htmlID.toLowerCase().indexOf('password') > 0) ||
|
||||||
(f.htmlName != null && f.htmlName.toLowerCase().indexOf('password') > 0) ||
|
(f.htmlName != null && f.htmlName.toLowerCase().indexOf('password') > 0) ||
|
||||||
(f.placeholder != null && f.placeholder.toLowerCase().indexOf('password') > 0));
|
(f.placeholder != null && f.placeholder.toLowerCase().indexOf('password') > 0)
|
||||||
|
);
|
||||||
if (!f.disabled && (canBeReadOnly || !f.readonly) && (isPassword || isLikePassword())
|
if (!f.disabled && (canBeReadOnly || !f.readonly) && (isPassword || isLikePassword())
|
||||||
&& (canBeHidden || f.viewable)) {
|
&& (canBeHidden || f.viewable)) {
|
||||||
arr.push(f);
|
arr.push(f);
|
||||||
|
|
Loading…
Reference in New Issue