Firefox-UI-Fix/autoconfig/program/config.js
alstjr7375 c5998dec8e Add 'autoconfig/' from commit '0178abfc53'
git-subtree-dir: autoconfig
git-subtree-mainline: 4bd7c2db21
git-subtree-split: 0178abfc53
2021-05-31 11:32:23 +09:00

20 lines
No EOL
479 B
JavaScript

// skip 1st line
try {
let {
classes: Cc,
interfaces: Ci,
manager: Cm,
utils: Cu
} = Components;
let cmanifest = Cc['@mozilla.org/file/directory_service;1'].getService(Ci.nsIProperties).get('UChrm', Ci.nsIFile);
cmanifest.append('utils');
cmanifest.append('chrome.manifest');
if(cmanifest.exists()){
Cm.QueryInterface(Ci.nsIComponentRegistrar).autoRegister(cmanifest);
Cu.import('chrome://userchromejs/content/boot.jsm');
}
} catch(ex) {};