1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 08:13:42 +00:00

edge hates for of loops :(

This commit is contained in:
Kyle Spearrin
2017-11-16 12:49:23 -05:00
parent cc5c7fb879
commit f9b00c6871
11 changed files with 99 additions and 93 deletions

View File

@@ -62,16 +62,16 @@ class CipherData {
if (response.data.Fields != null) {
this.fields = [];
for (const field of response.data.Fields) {
response.data.Fields.forEach((field: any) => {
this.fields.push(new FieldData(field));
}
});
}
if (response.attachments != null) {
this.attachments = [];
for (const attachment of response.attachments) {
response.attachments.forEach((attachment) => {
this.attachments.push(new AttachmentData(attachment));
}
});
}
}
}

View File

@@ -9,9 +9,9 @@ class DomainsResponse {
this.globalEquivalentDomains = [];
if (response.GlobalEquivalentDomains) {
for (const domain of response.GlobalEquivalentDomains) {
response.GlobalEquivalentDomains.forEach((domain: any) => {
this.globalEquivalentDomains.push(new GlobalDomainResponse(domain));
}
});
}
}
}

View File

@@ -28,9 +28,9 @@ class ProfileResponse {
this.securityStamp = response.SecurityStamp;
if (response.Organizations) {
for (const org of response.Organizations) {
response.Organizations.forEach((org: any) => {
this.organizations.push(new ProfileOrganizationResponse(org));
}
});
}
}
}

View File

@@ -15,15 +15,15 @@ class SyncResponse {
}
if (response.Folders) {
for (const folder of response.Folders) {
response.Folders.forEach((folder: any) => {
this.folders.push(new FolderResponse(folder));
}
});
}
if (response.Ciphers) {
for (const cipher of response.Ciphers) {
response.Ciphers.forEach((cipher: any) => {
this.ciphers.push(new CipherResponse(cipher));
}
});
}
if (response.Domains) {