From ea1601c32c080ed2606c037caf8a0aa19418cd3f Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Sat, 20 Apr 2019 21:31:09 -0400 Subject: [PATCH] formatting --- src/services/autofill.service.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/services/autofill.service.ts b/src/services/autofill.service.ts index e1f39a20ef..d3e6989e7d 100644 --- a/src/services/autofill.service.ts +++ b/src/services/autofill.service.ts @@ -850,9 +850,11 @@ export default class AutofillService implements AutofillServiceInterface { pageDetails.fields.forEach((f) => { const isPassword = f.type === 'password'; 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.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()) && (canBeHidden || f.viewable)) { arr.push(f);