From 437c32892d59bfa6444f318f067d571662e168cb Mon Sep 17 00:00:00 2001 From: imlonghao Date: Tue, 23 Oct 2018 13:14:00 +0800 Subject: [PATCH] Remove the comma between sub comment --- src/disqus.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/disqus.js b/src/disqus.js index 2d06ffa..2e3d838 100644 --- a/src/disqus.js +++ b/src/disqus.js @@ -501,10 +501,10 @@ function DisqusJS(config) { } })(); - html += children.map((comment) => { + children.map((comment) => { comment = processData(comment); comment.nesting = nesting + 1; - return `
  • ${renderPostItem(comment.comment)}${childrenComments(comment)}
  • `; + html += `
  • ${renderPostItem(comment.comment)}${childrenComments(comment)}
  • `; }); html += '';