aboutsummaryrefslogtreecommitdiff
path: root/profile/public
diff options
context:
space:
mode:
authorLarsVomMars2020-10-10 18:47:32 +0200
committerLarsVomMars2020-10-10 18:47:32 +0200
commit530bbfa293b7d17a6944b87416951b572c8f1d3d (patch)
treee37aca5fc105cb5671ab4dd5973b3bd711652e53 /profile/public
parentb2d5f009ef193a83b8c58e3fdfb279e3c931c27c (diff)
Refresh page after request
Diffstat (limited to 'profile/public')
-rw-r--r--profile/public/script.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/profile/public/script.js b/profile/public/script.js
index a386f56..64ba0b6 100644
--- a/profile/public/script.js
+++ b/profile/public/script.js
@@ -49,6 +49,7 @@ form.addEventListener("submit", async (evt) => {
const resp = await fetch(url, { method, body });
const res = await resp.text();
if (res !== "ok") alert("AHHHH");
+ else location.reload();
});
fetch("api/user")