aboutsummaryrefslogtreecommitdiffstats
path: root/client.js
diff options
context:
space:
mode:
authordan <[email protected]>2023-05-16 10:37:09 -0400
committerdan <[email protected]>2023-05-16 10:37:09 -0400
commit67895673ac3614003e6c3652892865f112d445b3 (patch)
treeb81ab94cd4265d7eb087f50a309ca5f3a835f9af /client.js
parentd5b55156cd316e2c121681a33182cc39abf05d2c (diff)
downloadsimple-comments-widget-67895673ac3614003e6c3652892865f112d445b3.tar.gz
simple-comments-widget-67895673ac3614003e6c3652892865f112d445b3.tar.bz2
simple-comments-widget-67895673ac3614003e6c3652892865f112d445b3.zip
fix: page_url -> page_id
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
});