Move email fieldnames to Identity constants

This commit is contained in:
Daniel James Smith 2022-01-02 14:41:50 +01:00
parent c45d1f8f7e
commit d25d532184
No known key found for this signature in database
GPG Key ID: 03E4BD365FF06726
2 changed files with 3 additions and 1 deletions

View File

@ -622,7 +622,7 @@ export default class AutofillService implements AutofillServiceInterface {
fillFields.title = f;
break;
} else if (!fillFields.email && this.isFieldMatch(f[attr],
['e-mail', 'email-address'])) {
IdentityAutoFillConstants.EmailFieldNames)) {
fillFields.email = f;
break;
} else if (!fillFields.address && this.isFieldMatch(f[attr],

View File

@ -225,6 +225,8 @@ export class IdentityAutoFillConstants {
"familienname",
];
static readonly EmailFieldNames: string[] = ["e-mail", "email-address"];
static readonly IsoCountries: { [id: string]: string } = {
afghanistan: "AF",
"aland islands": "AX",