Fix for loops in LightweightThemeManager.jsm (SyntaxError: missing ] after element list)

This commit is contained in:
NTD 2018-02-10 16:16:33 -05:00 committed by Roy Tam
commit 838ded4a6f

View file

@ -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);
},
};