mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 00:33:44 +00:00
Move title fieldnames to Identity constants
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user