mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-10 10:34:12 +01:00
Thing.
This commit is contained in:
7
common/bootstrap.js
vendored
7
common/bootstrap.js
vendored
@@ -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) {
|
||||
|
||||
@@ -26,7 +26,9 @@
|
||||
"{16dc34f7-6d22-4aa4-a67f-2921fb5dcb69}": {
|
||||
"path": "components/commandline-handler.js",
|
||||
"contract": "@mozilla.org/commandlinehandler/general-startup;1?type=dactyl",
|
||||
"category": ["command-line-handler", "m-dactyl"]
|
||||
"categories": {
|
||||
"command-line-handler": "m-dactyl"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user