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