diff --git a/main.js b/main.js index c1481bb..ccaf5ea 100644 --- a/main.js +++ b/main.js @@ -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)=>{