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;
|
fillFields.country = f;
|
||||||
break;
|
break;
|
||||||
} else if (!fillFields.phone && this.isFieldMatch(f[attr],
|
} else if (!fillFields.phone && this.isFieldMatch(f[attr],
|
||||||
['phone', 'mobile', 'mobile-phone', 'tel', 'telephone', 'phone-number'])) {
|
IdentityAutoFillConstants.PhoneFieldNames)) {
|
||||||
fillFields.phone = f;
|
fillFields.phone = f;
|
||||||
break;
|
break;
|
||||||
} else if (!fillFields.username && this.isFieldMatch(f[attr],
|
} else if (!fillFields.username && this.isFieldMatch(f[attr],
|
||||||
|
@ -288,6 +288,15 @@ export class IdentityAutoFillConstants {
|
|||||||
"address-country-code",
|
"address-country-code",
|
||||||
];
|
];
|
||||||
|
|
||||||
|
static readonly PhoneFieldNames: string[] = [
|
||||||
|
"phone",
|
||||||
|
"mobile",
|
||||||
|
"mobile-phone",
|
||||||
|
"tel",
|
||||||
|
"telephone",
|
||||||
|
"phone-number",
|
||||||
|
];
|
||||||
|
|
||||||
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
Block a user