set initial comment toggle icon

This commit is contained in:
Simon 2023-07-31 23:57:03 +07:00
parent e893dc3b24
commit 375e1a2100
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4
1 changed files with 1 additions and 1 deletions

View File

@ -1201,7 +1201,7 @@ function writeComments(allComments) {
function createReplyButton(replyId, totalReplies) {
let replyButton = document.createElement('button');
replyButton.innerHTML = `<span id="toggle-icon">+</span> ${totalReplies} replies`;
replyButton.innerHTML = `<span id="toggle-icon"></span> ${totalReplies} replies`;
replyButton.setAttribute('data-id', replyId);
replyButton.setAttribute('onclick', 'toggleCommentReplies(this)');
return replyButton;