mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-19 11:15:21 +01:00
Move address2 fieldnames to Identity constants
This commit is contained in:
parent
b2a3cd7feb
commit
e12b9ffa67
@ -635,7 +635,7 @@ export default class AutofillService implements AutofillServiceInterface {
|
||||
fillFields.address1 = f;
|
||||
break;
|
||||
} else if (!fillFields.address2 && this.isFieldMatch(f[attr],
|
||||
['address-2', 'address-line-2', 'addr-2', 'street-2'])) {
|
||||
IdentityAutoFillConstants.Address2FieldNames)) {
|
||||
fillFields.address2 = f;
|
||||
break;
|
||||
} else if (!fillFields.address3 && this.isFieldMatch(f[attr],
|
||||
|
@ -234,6 +234,13 @@ export class IdentityAutoFillConstants {
|
||||
"street-1",
|
||||
];
|
||||
|
||||
static readonly Address2FieldNames: string[] = [
|
||||
"address-2",
|
||||
"address-line-2",
|
||||
"addr-2",
|
||||
"street-2",
|
||||
];
|
||||
|
||||
static readonly IsoCountries: { [id: string]: string } = {
|
||||
afghanistan: "AF",
|
||||
"aland islands": "AX",
|
||||
|
Loading…
Reference in New Issue
Block a user