1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-28 13:22:25 +01:00
This commit is contained in:
Kris Maglione
2014-02-18 22:45:48 -08:00
parent 8d6ea20cc4
commit 5ba16bda44
2 changed files with 7 additions and 4 deletions

7
common/bootstrap.js vendored
View File

@@ -221,10 +221,11 @@ function init() {
if (!manifest.categories)
manifest.categories = [];
for (let [classID, { contract, path, category }] of Iterator(manifest.components || {})) {
for (let [classID, { contract, path, categories }] of Iterator(manifest.components || {})) {
components[classID] = new FactoryProxy(getURI(path).spec, classID, contract);
if (category)
manifest.categories.push([category[0], category[1], contract]);
if (categories)
for (let [category, id] in Iterator(categories))
manifest.categories.push([category, id, contract]);
}
for (let [category, id, value] of manifest.categories) {