mirror of
https://github.com/bitwarden/browser.git
synced 2024-12-22 16:29:09 +01:00
Move address containsOptions to Identity constants
This commit is contained in:
parent
30f7e29773
commit
bc3de6e115
@ -620,7 +620,7 @@ export default class AutofillService implements AutofillServiceInterface {
|
||||
fillFields.email = f;
|
||||
break;
|
||||
} else if (!fillFields.address && this.isFieldMatch(f[attr],
|
||||
IdentityAutoFillConstants.AddressFieldNames, ['mailing-addr', 'billing-addr', 'mail-addr', 'bill-addr'])) {
|
||||
IdentityAutoFillConstants.AddressFieldNames, IdentityAutoFillConstants.AddressFieldNameValues)) {
|
||||
fillFields.address = f;
|
||||
break;
|
||||
} else if (!fillFields.address1 && this.isFieldMatch(f[attr],
|
||||
|
@ -325,6 +325,13 @@ export class IdentityAutoFillConstants {
|
||||
"bill-addr",
|
||||
];
|
||||
|
||||
static readonly AddressFieldNameValues: string[] = [
|
||||
"mailing-addr",
|
||||
"billing-addr",
|
||||
"mail-addr",
|
||||
"bill-addr",
|
||||
];
|
||||
|
||||
static readonly Address1FieldNames: string[] = [
|
||||
"address-1",
|
||||
"address-line-1",
|
||||
|
Loading…
Reference in New Issue
Block a user