Disable palette editor if npm not found

This commit is contained in:
Nick O'Leary
2016-10-12 22:30:32 +01:00
parent a76674032d
commit 49f72881f4
11 changed files with 108 additions and 30 deletions

View File

@@ -34,7 +34,7 @@ function init(runtime) {
function load() {
registry.load();
return loader.load();
return installer.checkPrereq().then(loader.load);
}
function addModule(module) {
@@ -80,5 +80,7 @@ module.exports = {
installModule: installer.installModule,
uninstallModule: installer.uninstallModule,
cleanModuleList: registry.cleanModuleList
cleanModuleList: registry.cleanModuleList,
paletteEditorEnabled: installer.paletteEditorEnabled
};