We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 308350a commit 4897e2aCopy full SHA for 4897e2a
.DS_Store
6 KB
js/script.js
@@ -147,16 +147,7 @@ function drawTree() {
147
context.fillText(fileName, leftShift, topShift);
148
}
149
150
- const traverseFilesTree = (branch) => {
151
- drawFilePath(branch);
152
- if (branch.children.length) {
153
- branch.children.forEach(chiildBranch => {
154
- traverseFilesTree(chiildBranch);
155
- });
156
- }
157
- };
158
-
159
- traverseFilesTree(fileNamesTree._root, 0);
+ fileNamesTree._traverse(drawFilePath);
160
161
if (imageStyles.watermarkEnabled) {
162
context.font = "12px Arial, Helvetica, sans-serif";
0 commit comments