Skip to content
Snippets Groups Projects
Verified Commit 7fe912b1 authored by Jonas Leder's avatar Jonas Leder
Browse files

add option to regenerate comments

parent 97158b5f
No related branches found
No related tags found
1 merge request!8Rewrite API endpoint to graphql
......@@ -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");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment