add download confirmation message

pull/1/head
simon 2 years ago
parent 3dbd406076
commit 67e8f7a8b8
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4

@ -90,6 +90,14 @@ document.getElementById("download").addEventListener("click", function () {
function handleResponse(message) {
console.log("popup.js response: " + JSON.stringify(message));
browserType.storage.local.remove("youtube").then(response => {
let download = document.getElementById("download");
download.innerHTML = ""
let message = document.createElement("p");
message.innerText = "Link sent to Tube Archivist"
download.appendChild(message)
download.appendChild(document.createElement("hr"));
})
}
function handleError(error) {

Loading…
Cancel
Save