Skip to content

Commit

Permalink
Add other required parameter to sign up test button
Browse files Browse the repository at this point in the history
  • Loading branch information
ChiriVulpes committed Mar 11, 2024
1 parent c25c881 commit 536f3ed
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Fluff4me.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ export default class Fluff4me {
const signupbutton = document.createElement("button");
signupbutton.textContent = "Sign Up";
document.body.append(signupbutton);
// eslint-disable-next-line @typescript-eslint/no-misused-promises
signupbutton.addEventListener("click", async () => {
await fetch(`${Env.API_ORIGIN}author/create`, {
method: "POST",
Expand All @@ -82,6 +83,7 @@ export default class Fluff4me {
...Session.headers(),
},
body: JSON.stringify({
name: "Chiri Vulpes",
vanity: "chiri",
}),
});
Expand Down

0 comments on commit 536f3ed

Please sign in to comment.