This commit is contained in:
SinTan1729 2022-11-08 18:48:52 -06:00
parent 74e5b5d1c7
commit 6e2f1df108

View File

@ -75,8 +75,8 @@ const submitForm = () => {
.then((res) => {
if (!res.ok) {
if (document.getElementById("errBox") == null) {
controls = document.querySelector(".pure-controls");
errBox = document.createElement("p");
const controls = document.querySelector(".pure-controls");
const errBox = document.createElement("p");
errBox.setAttribute("id", "errBox");
errBox.setAttribute("style", "color:red");
errBox.innerHTML = "Short URL not valid or already in use!";