summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorcurly <curly@infernal.garden>2024-07-17 19:25:07 -0600
committercurly <curly@infernal.garden>2024-07-17 19:25:07 -0600
commit9feb35fa48c65ad404cd414bb4b9cda76a86b024 (patch)
tree42d1d2c86fc5dc47381c10724495145a5e9ecc01 /src
parent9bb0eef3951e39a9e86a80a68f3158f08305aa20 (diff)
downloadpoko_web-9feb35fa48c65ad404cd414bb4b9cda76a86b024.tar.gz
poko_web-9feb35fa48c65ad404cd414bb4b9cda76a86b024.tar.bz2
poko_web-9feb35fa48c65ad404cd414bb4b9cda76a86b024.zip
update form onload
Diffstat (limited to 'src')
-rw-r--r--src/main.js4
-rw-r--r--src/user/update/index.html2
2 files changed, 4 insertions, 2 deletions
diff --git a/src/main.js b/src/main.js
index d6705ad..c7f42bc 100644
--- a/src/main.js
+++ b/src/main.js
@@ -1,4 +1,4 @@
-const server = window.location.protocol + "//" + window.location.hostname + ":8000";
+const server = window.location.protocol + "//" + window.location.hostname + ":9050";
const host = window.location.protocol + "//" + window.location.host;
const client_id = "POKO Web 0.0"
@@ -358,6 +358,8 @@ window.onload = async function() {
await user()
} else if (window.location.pathname == "/admin/regkeys/") {
await regkeys()
+ } else if (window.location.pathname == "/user/update/") {
+ await update_form_onload()
}
if (await is_admin()) {
diff --git a/src/user/update/index.html b/src/user/update/index.html
index 0ec244b..b63448f 100644
--- a/src/user/update/index.html
+++ b/src/user/update/index.html
@@ -5,7 +5,7 @@
<script src="/main.js" defer></script>
<title>UPDATE INFO</title>
</head>
- <body onload="update_form_onload()">
+ <body>
<header>
<a href="/user/">
<center class="button navbutton">USER</center>