mirror of
https://github.com/bitwarden/browser.git
synced 2025-01-08 19:18:02 +01:00
Move phone fieldnames to Identity constants
This commit is contained in:
parent
423ef40aa1
commit
aeeb44e8c9
@ -659,7 +659,7 @@ export default class AutofillService implements AutofillServiceInterface {
|
||||
fillFields.country = f;
|
||||
break;
|
||||
} else if (!fillFields.phone && this.isFieldMatch(f[attr],
|
||||
['phone', 'mobile', 'mobile-phone', 'tel', 'telephone', 'phone-number'])) {
|
||||
IdentityAutoFillConstants.PhoneFieldNames)) {
|
||||
fillFields.phone = f;
|
||||
break;
|
||||
} else if (!fillFields.username && this.isFieldMatch(f[attr],
|
||||
|
@ -288,6 +288,15 @@ export class IdentityAutoFillConstants {
|
||||
"address-country-code",
|
||||
];
|
||||
|
||||
static readonly PhoneFieldNames: string[] = [
|
||||
"phone",
|
||||
"mobile",
|
||||
"mobile-phone",
|
||||
"tel",
|
||||
"telephone",
|
||||
"phone-number",
|
||||
];
|
||||
|
||||
static readonly IsoCountries: { [id: string]: string } = {
|
||||
afghanistan: "AF",
|
||||
"aland islands": "AX",
|
||||
|
Loading…
Reference in New Issue
Block a user