1
0
mirror of https://github.com/bitwarden/browser.git synced 2025-01-05 18:47:52 +01:00

formatting

This commit is contained in:
Kyle Spearrin 2019-04-20 21:31:09 -04:00
parent 200fa80260
commit ea1601c32c

View File

@ -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);