Move address3 fieldnames to Identity constants
This commit is contained in:
parent
e12b9ffa67
commit
a880cf32e6
|
@ -639,7 +639,7 @@ export default class AutofillService implements AutofillServiceInterface {
|
||||||
fillFields.address2 = f;
|
fillFields.address2 = f;
|
||||||
break;
|
break;
|
||||||
} else if (!fillFields.address3 && this.isFieldMatch(f[attr],
|
} else if (!fillFields.address3 && this.isFieldMatch(f[attr],
|
||||||
['address-3', 'address-line-3', 'addr-3', 'street-3'])) {
|
IdentityAutoFillConstants.Address3FieldNames)) {
|
||||||
fillFields.address3 = f;
|
fillFields.address3 = f;
|
||||||
break;
|
break;
|
||||||
} else if (!fillFields.postalCode && this.isFieldMatch(f[attr],
|
} else if (!fillFields.postalCode && this.isFieldMatch(f[attr],
|
||||||
|
|
|
@ -241,6 +241,13 @@ export class IdentityAutoFillConstants {
|
||||||
"street-2",
|
"street-2",
|
||||||
];
|
];
|
||||||
|
|
||||||
|
static readonly Address3FieldNames: string[] = [
|
||||||
|
"address-3",
|
||||||
|
"address-line-3",
|
||||||
|
"addr-3",
|
||||||
|
"street-3",
|
||||||
|
];
|
||||||
|
|
||||||
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