1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-20 18:23:31 +00:00

edge hates for of loops

This commit is contained in:
Kyle Spearrin
2017-11-15 16:07:38 -05:00
parent 85447bb2ab
commit 5fa5fbc496
5 changed files with 36 additions and 39 deletions

View File

@@ -71,18 +71,18 @@ class Cipher extends Domain {
if (obj.attachments != null) {
this.attachments = [];
for (const attachment of obj.attachments) {
obj.attachments.forEach((attachment) => {
this.attachments.push(new Attachment(attachment, alreadyEncrypted));
}
});
} else {
this.attachments = null;
}
if (obj.fields != null) {
this.fields = [];
for (const field of obj.fields) {
obj.fields.forEach((field) => {
this.fields.push(new Field(field, alreadyEncrypted));
}
});
} else {
this.fields = null;
}