Skip to content

Commit 05321e2

Browse files
authored
Update server.js
1 parent a3a061b commit 05321e2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/npm/server.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ app.get('/wiki/:title', (req, res) => {
104104
.then(response => response.json())
105105
.then(data => {
106106
const ip = data.ip;
107-
// Use the IP as needed
107+
// Use the IP as needed
108108
console.log(ip);
109109
});
110110
const urlParams = new URLSearchParams(window.location.search);
@@ -124,12 +124,12 @@ app.get('/wiki/:title', (req, res) => {
124124
.then(comment => {
125125
// Append new comment to the comment section
126126
const commentSection = document.querySelector('.comment-section');
127-
commentSection.innerHTML += `
127+
commentSection.innerHTML += \`
128128
<div class="comment" id="comment-${comment.id}">
129129
<div class="comment-author">${comment.author}</div>
130130
<div class="comment-content">${comment.content}</div>
131131
</div>
132-
`;
132+
\`;
133133
})
134134
.catch(error => console.error('Error adding comment:', error));
135135
}

0 commit comments

Comments
 (0)