add download confirmation message

This commit is contained in:
simon 2022-04-03 21:42:58 +07:00
parent 3dbd406076
commit 67e8f7a8b8
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4

View File

@ -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) {