fix: un par de logs quedaron sin comentar
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user