mirror of
https://github.com/bitwarden/browser
synced 2025-12-18 01:03:35 +00:00
Move company fieldnames to Identity constants
This commit is contained in:
@@ -667,7 +667,7 @@ export default class AutofillService implements AutofillServiceInterface {
|
|||||||
fillFields.username = f;
|
fillFields.username = f;
|
||||||
break;
|
break;
|
||||||
} else if (!fillFields.company && this.isFieldMatch(f[attr],
|
} else if (!fillFields.company && this.isFieldMatch(f[attr],
|
||||||
['company', 'company-name', 'organization', 'organization-name'])) {
|
IdentityAutoFillConstants.CompanyFieldNames)) {
|
||||||
fillFields.company = f;
|
fillFields.company = f;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -299,6 +299,13 @@ export class IdentityAutoFillConstants {
|
|||||||
|
|
||||||
static readonly UserNameFieldNames: string[] = ["user-name", "user-id", "screen-name"];
|
static readonly UserNameFieldNames: string[] = ["user-name", "user-id", "screen-name"];
|
||||||
|
|
||||||
|
static readonly CompanyFieldNames: string[] = [
|
||||||
|
"company",
|
||||||
|
"company-name",
|
||||||
|
"organization",
|
||||||
|
"organization-name",
|
||||||
|
];
|
||||||
|
|
||||||
static readonly IsoCountries: { [id: string]: string } = {
|
static readonly IsoCountries: { [id: string]: string } = {
|
||||||
afghanistan: "AF",
|
afghanistan: "AF",
|
||||||
"aland islands": "AX",
|
"aland islands": "AX",
|
||||||
|
|||||||
Reference in New Issue
Block a user