mirror of
https://github.com/bitwarden/browser.git
synced 2024-12-22 16:29:09 +01:00
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;
|
fillFields.phone = f;
|
||||||
break;
|
break;
|
||||||
} else if (!fillFields.username && this.isFieldMatch(f[attr],
|
} else if (!fillFields.username && this.isFieldMatch(f[attr],
|
||||||
['user-name', 'user-id', 'screen-name'])) {
|
IdentityAutoFillConstants.UserNameFieldNames)) {
|
||||||
fillFields.username = f;
|
fillFields.username = f;
|
||||||
break;
|
break;
|
||||||
} else if (!fillFields.company && this.isFieldMatch(f[attr],
|
} else if (!fillFields.company && this.isFieldMatch(f[attr],
|
||||||
|
@ -297,6 +297,8 @@ export class IdentityAutoFillConstants {
|
|||||||
"phone-number",
|
"phone-number",
|
||||||
];
|
];
|
||||||
|
|
||||||
|
static readonly UserNameFieldNames: string[] = ["user-name", "user-id", "screen-name"];
|
||||||
|
|
||||||
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