mirror of
https://github.com/bitwarden/browser.git
synced 2024-12-27 17:18:04 +01:00
Move state fieldnames to Identity constants
This commit is contained in:
parent
61dbe5421f
commit
4390989a88
@ -651,8 +651,7 @@ export default class AutofillService implements AutofillServiceInterface {
|
||||
fillFields.city = f;
|
||||
break;
|
||||
} else if (!fillFields.state && this.isFieldMatch(f[attr],
|
||||
['state', 'province', 'provence', 'address-level-1', 'address-state',
|
||||
'address-province'])) {
|
||||
IdentityAutoFillConstants.StateFieldNames)) {
|
||||
fillFields.state = f;
|
||||
break;
|
||||
} else if (!fillFields.country && this.isFieldMatch(f[attr],
|
||||
|
@ -270,6 +270,15 @@ export class IdentityAutoFillConstants {
|
||||
"address-town",
|
||||
];
|
||||
|
||||
static readonly StateFieldNames: string[] = [
|
||||
"state",
|
||||
"province",
|
||||
"provence",
|
||||
"address-level-1",
|
||||
"address-state",
|
||||
"address-province",
|
||||
];
|
||||
|
||||
static readonly IsoCountries: { [id: string]: string } = {
|
||||
afghanistan: "AF",
|
||||
"aland islands": "AX",
|
||||
|
Loading…
Reference in New Issue
Block a user