Skip to content

SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.

Fixed javascript bug.

smicallef49119fe8e8c0
diff --git a/static/js/viz.js b/static/js/viz.js
index 643084c4..03e2350b 100644
--- a/static/js/viz.js
+++ b/static/js/viz.js
@@ -51,7 +51,9 @@ function sf_viz_countLevels(arg, levelsDeep, maxLevels) {
// We've hit a member with children..
if (p == "children" && data[i].children != null) {
levels++;
- levels, max = sf_viz_countLevels(data[i].children, levels, max);
+ arr = sf_viz_countLevels(data[i].children, levels, max);
+ levels = arr[0];
+ max = arr[1];
}
if (p == "children" && data[i].children == null) {