Add projects to runtime-api

This commit is contained in:
Nick O'Leary
2018-04-20 20:50:20 +01:00
parent 2dab1d3e6e
commit 94ca4607bc
11 changed files with 808 additions and 402 deletions

View File

@@ -615,6 +615,9 @@ function nodeIconDir(dir) {
}
function getNodeIconPath(module,icon) {
if (/\.\./.test(icon)) {
throw new Error();
}
var iconName = module+"/"+icon;
if (iconCache[iconName]) {
return iconCache[iconName];