diff options
author | dan <[email protected]> | 2023-05-16 10:37:09 -0400 |
---|---|---|
committer | dan <[email protected]> | 2023-05-16 10:37:09 -0400 |
commit | 67895673ac3614003e6c3652892865f112d445b3 (patch) | |
tree | b81ab94cd4265d7eb087f50a309ca5f3a835f9af /client.js | |
parent | d5b55156cd316e2c121681a33182cc39abf05d2c (diff) | |
download | simple-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.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 }); |