mirror of
https://github.com/bitwarden/browser.git
synced 2025-01-09 19:28:06 +01:00
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;
|
fillFields.lastName = f;
|
||||||
break;
|
break;
|
||||||
} else if (!fillFields.title && this.isFieldMatch(f[attr],
|
} else if (!fillFields.title && this.isFieldMatch(f[attr],
|
||||||
['honorific-prefix', 'prefix', 'title'])) {
|
IdentityAutoFillConstants.TitleFieldNames)) {
|
||||||
fillFields.title = f;
|
fillFields.title = f;
|
||||||
break;
|
break;
|
||||||
} else if (!fillFields.email && this.isFieldMatch(f[attr],
|
} else if (!fillFields.email && this.isFieldMatch(f[attr],
|
||||||
|
@ -190,6 +190,8 @@ export class IdentityAutoFillConstants {
|
|||||||
"data-recurly",
|
"data-recurly",
|
||||||
];
|
];
|
||||||
|
|
||||||
|
static readonly TitleFieldNames: string[] = ["honorific-prefix", "prefix", "title"];
|
||||||
|
|
||||||
static readonly FirstnameFieldNames: string[] = [
|
static readonly FirstnameFieldNames: string[] = [
|
||||||
// English
|
// English
|
||||||
"f-name",
|
"f-name",
|
||||||
|
Loading…
Reference in New Issue
Block a user