logging capabilities

This commit is contained in:
unurled 2022-09-05 19:03:58 +02:00
parent 3f4c835bd1
commit f12441b3b3
6 changed files with 47 additions and 18 deletions

View file

@ -24,9 +24,6 @@ async function submitForm(e, form) {
document.getElementById("shortUrl").innerHTML = response.shortUrl
document.getElementById("shortUrl").href = response.shortUrl
document.getElementById("longUrl").innerHTML = "Long Url: " + response.longUrl
if (response.edit) {
console.log("Already have this path, editing.")
}
if (response.old) {
document.getElementById("edit").style.visibility = "visible"
document.getElementById("oldLongUrl").innerHTML = response.old.longUrl