kopia lustrzana https://github.com/c9/core
fix loading pty.js in local version
rodzic
04401d2ce2
commit
220c267e44
|
@ -13,9 +13,11 @@ modules._resolveFilename = function(request, parent) {
|
|||
// Ensure client extensions can be loaded
|
||||
request = request.replace(/^lib\//, "node_modules/");
|
||||
// ensure we never use node_modules outside of root dir
|
||||
if (parent.paths[0] && parent.paths[0].indexOf(root) == 0) {
|
||||
parent.paths = parent.paths.filter(function(p) {
|
||||
return p.indexOf(root) == 0
|
||||
return p.indexOf(root) == 0;
|
||||
});
|
||||
}
|
||||
// Add the extra paths
|
||||
extraPaths.forEach(function(p) {
|
||||
if (parent.paths.indexOf(p) === -1)
|
||||
|
|
Ładowanie…
Reference in New Issue