diff options
author | curly <curly@infernal.garden> | 2024-07-15 18:35:55 -0600 |
---|---|---|
committer | curly <curly@infernal.garden> | 2024-07-15 18:35:55 -0600 |
commit | 3e9a7fbf29f9aeb2dd7504c345220951c949905f (patch) | |
tree | 4c46f8e56f18ef2e3ac5c9ed9d864c35b14d102f /src | |
parent | f495c613241f95ee4bf10a54b3dc8d4ffb960b4b (diff) | |
download | poko_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')
-rw-r--r-- | src/favicon.ico | 0 | ||||
-rw-r--r-- | src/main.js | 5 |
2 files changed, 2 insertions, 3 deletions
diff --git a/src/favicon.ico b/src/favicon.ico new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/src/favicon.ico 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) { |