add comment
This commit is contained in:
parent
2d21d22bf5
commit
4890d9a710
1 changed files with 24 additions and 19 deletions
|
@ -51,23 +51,28 @@ resolveButton.addEventListener("click", () => {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
// getButton.addEventListener("click", () => {
|
//
|
||||||
// const value = resolveInput.value;
|
// This currently only works for images
|
||||||
// if (!value) {
|
//
|
||||||
// help.innerHTML = "You need to enter a name before getting the file.";
|
getButton.addEventListener("click", () => {
|
||||||
// return;
|
const value = resolveInput.value;
|
||||||
// }
|
if (!value) {
|
||||||
|
help.innerHTML = "You need to enter a name before getting the file.";
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// claimData.innerText = "Loading...";
|
// claimData.innerText = "Loading...";
|
||||||
// Lbry.get({ uri: `lbry://${value}` })
|
// Lbry.get({ uri: `lbry://${value}` })
|
||||||
// .then(res => {
|
// .then(result => {
|
||||||
// const filePath = res.download_path;
|
// const filePath = result.download_path;
|
||||||
// const image = document.createElement("img");
|
// const image = document.createElement("img");
|
||||||
// image.src = filePath;
|
|
||||||
// imageWrapper.appendChild(image);
|
// image.src = filePath;
|
||||||
// claimData.innerText = null;
|
// imageWrapper.appendChild(image);
|
||||||
// })
|
|
||||||
// .catch(error => {
|
// claimData.innerText = JSON.stringify(result, null, 2);
|
||||||
// claimData.innerText = JSON.stringify(error, null, 2);
|
// })
|
||||||
// });
|
// .catch(error => {
|
||||||
// });
|
// claimData.innerText = JSON.stringify(error, null, 2);
|
||||||
|
// });
|
||||||
|
});
|
||||||
|
|
Loading…
Reference in a new issue