Skip to content

Commit e6ea307

Browse files
committed
Fix duplicate element IDs
1 parent 32c6d7d commit e6ea307

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ function loadLyricsViewer(currentUrlInfo) {
207207
document.getElementById("loadedCommentsCount").children[0].textContent = parseInt(document.getElementById("loadedCommentsCount").children[0].textContent) + x.length;
208208
for (let index = 0; index < x.length; index++) {
209209
const comment = x[index];
210-
const commentElement = docCreateElement('div', { class: 'comment', id: 'commentId123' }, [
210+
const commentElement = docCreateElement('div', { class: 'comment' }, [
211211
docCreateElement('div', { className: 'comment-id', style: 'font-size: 0.8em; color: #888;', id: `comment_${comment.commentId}`, textContent: comment.commentId }),
212212
docCreateElement('div', { className: 'comment-username', style: 'font-weight: bold; color: #4CAF50;', textContent: comment.username }),
213213
docCreateElement('div', { className: 'comment-date', style: 'font-size: 0.8em; color: #888;', textContent: `${makeMinimalisticDateTimeFormat(comment.date)} (Europe/Warsaw)` }),

0 commit comments

Comments
 (0)