aboutsummaryrefslogtreecommitdiffstats
path: root/client.js
diff options
context:
space:
mode:
Diffstat (limited to 'client.js')
-rw-r--r--client.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/client.js b/client.js
index 119a7b3..78b5f96 100644
--- a/client.js
+++ b/client.js
@@ -34,7 +34,7 @@ function commentsRender() {
// GET comments
function fetchComments() {
- fetch(`${config.base_url}?page_url=${config.page_id}`)
+ fetch(`${config.base_url}?page_id=${config.page_id}`)
.then(r => r.ok && r.json())
.then(xs => {
comments = xs;
@@ -72,7 +72,7 @@ function createComment(comment) {
function handleCommentFormSubmit() {
if (commentcontent.value !== "") {
createComment({
- page_url: config.page_id,
+ page_id: config.page_id,
content: `${commentcontent.value}\n - ${username.value}`,
bot: bot.value
});