diff --git a/json/modules.json b/json/modules.json index c4faf05b..f739aaa0 100644 --- a/json/modules.json +++ b/json/modules.json @@ -8,7 +8,7 @@ "contact", "socket", "terminal", - "console", { + "console", [{ "name": "storage", "data": [{ "name": "DropBox", @@ -48,5 +48,5 @@ } } ] - } -] \ No newline at end of file + }] +] diff --git a/lib/util.js b/lib/util.js index 7b5059fb..c64401d3 100644 --- a/lib/util.js +++ b/lib/util.js @@ -886,12 +886,18 @@ if (isArray) { array.some(function(item) { - var is = item.name === name; + var is, + isArray = Util.isArray(item); - if (is) - ret = item.data; + if (isArray) + item.some(function(item) { + is = item.name === name; + + if (is) + ret = item.data; + }); - return is; + return is; }); }