mirror of
https://github.com/tubearchivist/browser-extension.git
synced 2024-11-22 03:30:14 +00:00
add download confirmation message
This commit is contained in:
parent
3dbd406076
commit
67e8f7a8b8
@ -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…
Reference in New Issue
Block a user