Handle scoped node modules in the api

This commit is contained in:
Nick O'Leary
2016-05-17 21:56:03 +01:00
parent d7715b05ee
commit 9e26aeea1d
4 changed files with 18 additions and 16 deletions

View File

@@ -67,11 +67,13 @@ function filterNodeInfo(n) {
function getModule(id) {
return id.split("/")[0];
var parts = id.split("/");
return parts.slice(0,parts.length-1).join("/");
}
function getNode(id) {
return id.split("/")[1];
var parts = id.split("/");
return parts[parts.length-1];
}
function saveNodeList() {