summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2018-02-10 16:16:33 -0500
committerMatt A. Tobin <email@mattatobin.com>2018-02-10 16:16:33 -0500
commitc26e1ae251bdbd36e3debfe9f157ff0ae9ac93d9 (patch)
tree682677d802d6ec178f15686b3a1b7e37239f6e22
parent3313fd9c51070fadb1775a41eb5e8d731dfb53e8 (diff)
downloaduxp-c26e1ae251bdbd36e3debfe9f157ff0ae9ac93d9.tar.gz
Fix for loops in LightweightThemeManager.jsm (SyntaxError: missing ] after element list)
-rw-r--r--toolkit/mozapps/extensions/LightweightThemeManager.jsm8
1 files changed, 7 insertions, 1 deletions
diff --git a/toolkit/mozapps/extensions/LightweightThemeManager.jsm b/toolkit/mozapps/extensions/LightweightThemeManager.jsm
index 66761efe2b..5856bfa912 100644
--- a/toolkit/mozapps/extensions/LightweightThemeManager.jsm
+++ b/toolkit/mozapps/extensions/LightweightThemeManager.jsm
@@ -386,7 +386,13 @@ this.LightweightThemeManager = {
return;
}
- aCallback([new AddonWrapper(a) for each (a in this.usedThemes)]);
+ // Tycho: aCallback([new AddonWrapper(a) for each (a in this.usedThemes)]);
+ let result = [];
+ for each(let a in this.usedThemes) {
+ result.push(new AddonWrapper(a));
+ }
+
+ aCallback(result);
},
};