Move address1 fieldnames to Identity constants
This commit is contained in:
parent
d25d532184
commit
b2a3cd7feb
|
@ -631,7 +631,7 @@ export default class AutofillService implements AutofillServiceInterface {
|
||||||
fillFields.address = f;
|
fillFields.address = f;
|
||||||
break;
|
break;
|
||||||
} else if (!fillFields.address1 && this.isFieldMatch(f[attr],
|
} else if (!fillFields.address1 && this.isFieldMatch(f[attr],
|
||||||
['address-1', 'address-line-1', 'addr-1', 'street-1'])) {
|
IdentityAutoFillConstants.Address1FieldNames)) {
|
||||||
fillFields.address1 = f;
|
fillFields.address1 = f;
|
||||||
break;
|
break;
|
||||||
} else if (!fillFields.address2 && this.isFieldMatch(f[attr],
|
} else if (!fillFields.address2 && this.isFieldMatch(f[attr],
|
||||||
|
|
|
@ -227,6 +227,13 @@ export class IdentityAutoFillConstants {
|
||||||
|
|
||||||
static readonly EmailFieldNames: string[] = ["e-mail", "email-address"];
|
static readonly EmailFieldNames: string[] = ["e-mail", "email-address"];
|
||||||
|
|
||||||
|
static readonly Address1FieldNames: string[] = [
|
||||||
|
"address-1",
|
||||||
|
"address-line-1",
|
||||||
|
"addr-1",
|
||||||
|
"street-1",
|
||||||
|
];
|
||||||
|
|
||||||
static readonly IsoCountries: { [id: string]: string } = {
|
static readonly IsoCountries: { [id: string]: string } = {
|
||||||
afghanistan: "AF",
|
afghanistan: "AF",
|
||||||
"aland islands": "AX",
|
"aland islands": "AX",
|
||||||
|
|
Loading…
Reference in New Issue