diff --git a/src/disqus.js b/src/disqus.js
index 6f3b995..f40f89e 100644
--- a/src/disqus.js
+++ b/src/disqus.js
@@ -487,8 +487,6 @@ function renderComment(data) {
`;
document.getElementById('disqus_thread').innerHTML = disqusjsBaseTpl;
-
-
var commentBodyTpl = `
@@ -504,14 +502,26 @@ function renderComment(data) {
`
+
data.map(s => {
childrenComments = (s) => {
+ var nesting = s.nesting
+
var children = (s.children || []);
- if (typeof children === 'null') return;
- var html = '';
- console.log(children)
+ if (typeof children === 'null') {
+ return;
+ }
+
+ console.log(nesting < 4)
+ if (nesting < 4) {
+ var html = '';
+ } else {
+ var html = '';
+ }
+
children.map(s => {
+
let comment = s.comment
if (comment.author.profileUrl) {
@@ -526,7 +536,9 @@ function renderComment(data) {
comment.authorEl = `${comment.author.name}`
}
- html += '