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 = '