Move title fieldnames to Identity constants
This commit is contained in:
parent
729150d404
commit
c45d1f8f7e
|
@ -618,7 +618,7 @@ export default class AutofillService implements AutofillServiceInterface {
|
|||
fillFields.lastName = f;
|
||||
break;
|
||||
} else if (!fillFields.title && this.isFieldMatch(f[attr],
|
||||
['honorific-prefix', 'prefix', 'title'])) {
|
||||
IdentityAutoFillConstants.TitleFieldNames)) {
|
||||
fillFields.title = f;
|
||||
break;
|
||||
} else if (!fillFields.email && this.isFieldMatch(f[attr],
|
||||
|
|
|
@ -190,6 +190,8 @@ export class IdentityAutoFillConstants {
|
|||
"data-recurly",
|
||||
];
|
||||
|
||||
static readonly TitleFieldNames: string[] = ["honorific-prefix", "prefix", "title"];
|
||||
|
||||
static readonly FirstnameFieldNames: string[] = [
|
||||
// English
|
||||
"f-name",
|
||||
|
|
Loading…
Reference in New Issue