This commit is contained in:
maaa 2024-02-27 23:24:49 +01:00
parent 67186f0bd3
commit cc7a7f70c0
1 changed files with 6 additions and 2 deletions

View File

@ -206,7 +206,11 @@ function updateUserInfo() {
"Content-Type": "application/json; charset=UTF-8" "Content-Type": "application/json; charset=UTF-8"
} }
}) })
.then((response) => response) .catch((error) => {
noteBox.readOnly = true
noteBox.value = ""
noteBox.placeholder = "Failed to connect to the server.\nPlease check your internet connection."
})
.then((response) => { .then((response) => {
async function doStuff() { async function doStuff() {
if (response.status == 500) { if (response.status == 500) {