From 90e68c3e3f4bb2f1a427a01586981e62bf74b898 Mon Sep 17 00:00:00 2001 From: "Matt A. Tobin" Date: Mon, 12 Mar 2018 16:49:50 -0400 Subject: Fix for loops in selectAddons.js (SyntaxError: missing ] after element list) --- toolkit/mozapps/extensions/content/selectAddons.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'toolkit/mozapps/extensions') diff --git a/toolkit/mozapps/extensions/content/selectAddons.js b/toolkit/mozapps/extensions/content/selectAddons.js index 33ab8a84e..f80932b3f 100644 --- a/toolkit/mozapps/extensions/content/selectAddons.js +++ b/toolkit/mozapps/extensions/content/selectAddons.js @@ -123,7 +123,11 @@ var gChecking = { if (this._completeCount < this._addonCount) return; - var addons = [gAddons[id] for (id in gAddons)]; + // Tycho: var addons = [gAddons[id] for (id in gAddons)]; + var addons = []; + for (let id in gAddons) { + addons.push(gAddons[id]) + } addons.sort(function sortAddons(a, b) { let orderA = orderForScope(a.addon.scope); -- cgit v1.2.3