diff options
author | Alex Yatskov <FooSoft@users.noreply.github.com> | 2019-09-30 19:54:27 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-30 19:54:27 -0700 |
commit | 3c3a2c94746c972c6a7e9a84e108e13786367e31 (patch) | |
tree | 20d8f079fee2bbcf1c0237319c5556a49dda8a39 /ext/bg/js/conditions-ui.js | |
parent | 00d16433e705b916d4e078244b213cede8bff5bb (diff) | |
parent | 8b7558a757447b931ee0dd1b5d724673e98bc13d (diff) |
Merge pull request #230 from toasted-nutbread/edge-fixes
Use toIterable for cross-window origin objects
Diffstat (limited to 'ext/bg/js/conditions-ui.js')
-rw-r--r-- | ext/bg/js/conditions-ui.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/bg/js/conditions-ui.js b/ext/bg/js/conditions-ui.js index a6f54a1c..43c6dc08 100644 --- a/ext/bg/js/conditions-ui.js +++ b/ext/bg/js/conditions-ui.js @@ -36,7 +36,7 @@ ConditionsUI.Container = class Container { this.container.empty(); - for (const conditionGroup of conditionGroups) { + for (const conditionGroup of toIterable(conditionGroups)) { this.children.push(new ConditionsUI.ConditionGroup(this, conditionGroup)); } @@ -122,7 +122,7 @@ ConditionsUI.ConditionGroup = class ConditionGroup { this.separator = ConditionsUI.instantiateTemplate('#condition-group-separator-template').appendTo(parent.container); this.addButton = this.options.find('.condition-add'); - for (const condition of conditionGroup.conditions) { + for (const condition of toIterable(conditionGroup.conditions)) { this.children.push(new ConditionsUI.Condition(this, condition)); } |