Move username fieldnames to Identity constants
This commit is contained in:
parent
aeeb44e8c9
commit
0a1b0f5eb9
|
@ -663,7 +663,7 @@ export default class AutofillService implements AutofillServiceInterface {
|
|||
fillFields.phone = f;
|
||||
break;
|
||||
} else if (!fillFields.username && this.isFieldMatch(f[attr],
|
||||
['user-name', 'user-id', 'screen-name'])) {
|
||||
IdentityAutoFillConstants.UserNameFieldNames)) {
|
||||
fillFields.username = f;
|
||||
break;
|
||||
} else if (!fillFields.company && this.isFieldMatch(f[attr],
|
||||
|
|
|
@ -297,6 +297,8 @@ export class IdentityAutoFillConstants {
|
|||
"phone-number",
|
||||
];
|
||||
|
||||
static readonly UserNameFieldNames: string[] = ["user-name", "user-id", "screen-name"];
|
||||
|
||||
static readonly IsoCountries: { [id: string]: string } = {
|
||||
afghanistan: "AF",
|
||||
"aland islands": "AX",
|
||||
|
|
Loading…
Reference in New Issue