Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
var treeContainer = document.createElement('div');
treeContainer.className = "tree-container";
document.body.appendChild(treeContainer);
var widget = treeRendering.drawQueryTree(treeContainer, loadedTree);
registerEventHandlers(widget);
} else {
spinner.stop();
document.write(errors.reduce(function(a, b) {
return a + "<br>" + b;
}));
}
};
if (inlineString) {
displayTree(inlineString);
} else {
fetchText(directory + graphFile)
.then(displayTree, function(err) {
document.write("Request for '" + directory + graphFile + "' failed with '" + err + "'.");
});
}
}