add option to regenerate comments
This commit is contained in:
parent
97158b5f0c
commit
7fe912b172
1 changed files with 1 additions and 0 deletions
|
@ -16,6 +16,7 @@ class commentsDisplay extends HTMLElement {
|
|||
body: graphql,
|
||||
};
|
||||
let comments = (await (await fetch("http://localhost:1234/API/graphql.php", requestOptions)).json()).data.comments;
|
||||
this.innerHTML = "";
|
||||
comments.forEach((element) => {
|
||||
const h3 = document.createElement("h3");
|
||||
h3.classList.add("commentTitle");
|
||||
|
|
Loading…
Reference in a new issue