add comment

This commit is contained in:
Sean Yesmunt 2019-02-19 15:28:27 -05:00
parent 2d21d22bf5
commit 4890d9a710

View file

@ -51,23 +51,28 @@ resolveButton.addEventListener("click", () => {
});
});
// getButton.addEventListener("click", () => {
// const value = resolveInput.value;
// if (!value) {
// help.innerHTML = "You need to enter a name before getting the file.";
// return;
// }
//
// This currently only works for images
//
getButton.addEventListener("click", () => {
const value = resolveInput.value;
if (!value) {
help.innerHTML = "You need to enter a name before getting the file.";
return;
}
// claimData.innerText = "Loading...";
// Lbry.get({ uri: `lbry://${value}` })
// .then(res => {
// const filePath = res.download_path;
// .then(result => {
// const filePath = result.download_path;
// const image = document.createElement("img");
// image.src = filePath;
// imageWrapper.appendChild(image);
// claimData.innerText = null;
// claimData.innerText = JSON.stringify(result, null, 2);
// })
// .catch(error => {
// claimData.innerText = JSON.stringify(error, null, 2);
// });
// });
});