diff options
author | LarsVomMars | 2020-10-10 18:47:32 +0200 |
---|---|---|
committer | LarsVomMars | 2020-10-10 18:47:32 +0200 |
commit | 530bbfa293b7d17a6944b87416951b572c8f1d3d (patch) | |
tree | e37aca5fc105cb5671ab4dd5973b3bd711652e53 /profile/public | |
parent | b2d5f009ef193a83b8c58e3fdfb279e3c931c27c (diff) |
Refresh page after request
Diffstat (limited to 'profile/public')
-rw-r--r-- | profile/public/script.js | 1 |
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") |