summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/index.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/index.js b/src/index.js
index 6cc83e4..39b3c7d 100644
--- a/src/index.js
+++ b/src/index.js
@@ -28,8 +28,8 @@ async function main() {
source: choice(trees[value]),
target: index,
});
- // don't link to the root node more than once!
- if (trees[value][0]) {
+ // option: don't link to the root node more than once
+ if (window.location.hash === "#dense" && trees[value][0]) {
trees[value].push(index);
} else {
trees[value] = [index];