From a2f6d779cde3761044a38360ce9ee67f12685e21 Mon Sep 17 00:00:00 2001 From: Luna Date: Sat, 17 Jul 2021 16:13:46 -0700 Subject: [PATCH] Changed how client sends pronouns. --- register.html | 18 ++++++++++-------- register.js | 2 +- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/register.html b/register.html index db32d8e..c18684a 100644 --- a/register.html +++ b/register.html @@ -20,22 +20,24 @@

-
+



+ + + + + +

Or.


-

+ + +

Format: pronoun/otherpronoun


diff --git a/register.js b/register.js index f3b9d26..cbafbc9 100644 --- a/register.js +++ b/register.js @@ -39,7 +39,7 @@ async function getUname() { } async function register() { -const rawResponse = await fetch(`${API_URL}/api/register/${uname.toString().toLowerCase()}/${pin.toString()}/${pronouns.toString().toLowerCase()}`, { +const rawResponse = await fetch(`${API_URL}/api/register/${uname.toString().toLowerCase()}/${pin.toString()}/${pronouns.toString().toLowerCase().replace("/", ".")}`, { method: 'POST', headers: { 'Accept': 'text/plain'