This commit is contained in:
Nicolai Ort 2021-08-17 19:42:11 +02:00
parent c48527ad0c
commit 71a6795fce
Signed by: niggl
GPG Key ID: 13AFA55AF62F269F
1 changed files with 4 additions and 0 deletions

View File

@ -58,6 +58,10 @@ function createUrl() {
document.getElementById("error_dismiss").onclick = () =>{
document.getElementById("error_container").classList.add("hidden");
};
/**
* Display alerts for errors (only handling 400 correctly r/n)
* @param {response} res The fetch response object
*/
function handleError(res) {
if (res.status == 400) {
res.text().then((body)=>{