mirror of
https://github.com/SinTan1729/chhoto-url
synced 2024-12-26 23:58:35 -06:00
Bug fix
This commit is contained in:
parent
74e5b5d1c7
commit
6e2f1df108
1 changed files with 2 additions and 2 deletions
|
@ -75,8 +75,8 @@ const submitForm = () => {
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
if (!res.ok) {
|
if (!res.ok) {
|
||||||
if (document.getElementById("errBox") == null) {
|
if (document.getElementById("errBox") == null) {
|
||||||
controls = document.querySelector(".pure-controls");
|
const controls = document.querySelector(".pure-controls");
|
||||||
errBox = document.createElement("p");
|
const errBox = document.createElement("p");
|
||||||
errBox.setAttribute("id", "errBox");
|
errBox.setAttribute("id", "errBox");
|
||||||
errBox.setAttribute("style", "color:red");
|
errBox.setAttribute("style", "color:red");
|
||||||
errBox.innerHTML = "Short URL not valid or already in use!";
|
errBox.innerHTML = "Short URL not valid or already in use!";
|
||||||
|
|
Loading…
Reference in a new issue