split out library loader

This commit is contained in:
azivner
2018-03-27 22:42:46 -04:00
parent 9bb188b519
commit b10b0048f3
11 changed files with 109 additions and 97 deletions

View File

@@ -29,7 +29,7 @@ function formatNode(node, level) {
const indentAfter = new Array(level - 1).join(' ');
let textNode;
for (let i = 0; i < node.children.length; i++) {
for (const i = 0; i < node.children.length; i++) {
textNode = document.createTextNode('\n' + indentBefore);
node.insertBefore(textNode, node.children[i]);