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;
|
||||
// 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;
|
||||
// const image = document.createElement("img");
|
||||
// image.src = filePath;
|
||||
// imageWrapper.appendChild(image);
|
||||
// claimData.innerText = null;
|
||||
// })
|
||||
// .catch(error => {
|
||||
// claimData.innerText = JSON.stringify(error, null, 2);
|
||||
// });
|
||||
// });
|
||||
// claimData.innerText = "Loading...";
|
||||
// Lbry.get({ uri: `lbry://${value}` })
|
||||
// .then(result => {
|
||||
// const filePath = result.download_path;
|
||||
// const image = document.createElement("img");
|
||||
|
||||
// image.src = filePath;
|
||||
// imageWrapper.appendChild(image);
|
||||
|
||||
// claimData.innerText = JSON.stringify(result, null, 2);
|
||||
// })
|
||||
// .catch(error => {
|
||||
// claimData.innerText = JSON.stringify(error, null, 2);
|
||||
// });
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue