From 67895673ac3614003e6c3652892865f112d445b3 Mon Sep 17 00:00:00 2001 From: dan Date: Tue, 16 May 2023 10:37:09 -0400 Subject: fix: page_url -> page_id --- client.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'client.js') 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 }); -- cgit v1.2.3