fix: un par de logs quedaron sin comentar

This commit is contained in:
2026-03-18 16:53:40 -03:00
parent e9566dcc62
commit 248d6c6d19

View File

@@ -13,7 +13,7 @@
onsubmit={async (e) => { onsubmit={async (e) => {
e.preventDefault(); e.preventDefault();
// console.log(e.target[0].value); // console.log(e.target[0].value);
console.log($url); // console.log($url);
const req = { longUrl: input.value }; const req = { longUrl: input.value };
try { try {
const res = await fetch(`${$url}/url/`, { const res = await fetch(`${$url}/url/`, {
@@ -22,7 +22,7 @@
}); });
if (res.ok) { if (res.ok) {
const data = await res.json(); const data = await res.json();
console.log(data.shortUrl); // console.log(data.shortUrl);
popup = data.shortUrl; popup = data.shortUrl;
} }
} catch { } catch {