summaryrefslogtreecommitdiff
path: root/src/main.js
diff options
context:
space:
mode:
authorcurly <curly@infernal.garden>2024-07-15 18:35:55 -0600
committercurly <curly@infernal.garden>2024-07-15 18:35:55 -0600
commit3e9a7fbf29f9aeb2dd7504c345220951c949905f (patch)
tree4c46f8e56f18ef2e3ac5c9ed9d864c35b14d102f /src/main.js
parentf495c613241f95ee4bf10a54b3dc8d4ffb960b4b (diff)
downloadpoko_web-3e9a7fbf29f9aeb2dd7504c345220951c949905f.tar.gz
poko_web-3e9a7fbf29f9aeb2dd7504c345220951c949905f.tar.bz2
poko_web-3e9a7fbf29f9aeb2dd7504c345220951c949905f.zip
get rid of favicon.ico 404 error quick fix
Diffstat (limited to 'src/main.js')
-rw-r--r--src/main.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main.js b/src/main.js
index 21a2f8f..e6cadce 100644
--- a/src/main.js
+++ b/src/main.js
@@ -53,12 +53,11 @@ async function register() {
const id = document.getElementById("id").value;
const url = server + "/user/register/"
- var body;
+ var body = {"name": username, "password": password, "id": id};
if (id == "") {
body = {"name": username, "password": password}
- } else {
- body = {"name": username, "password": password, "id": id}
}
+
const req = await xhttp_post(url, body);
if (req.status == 201) {