From 67e8f7a8b87f15f9b713d88356762e0684d4dc32 Mon Sep 17 00:00:00 2001 From: simon Date: Sun, 3 Apr 2022 21:42:58 +0700 Subject: [PATCH] add download confirmation message --- extension/popup.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/extension/popup.js b/extension/popup.js index b7e8ba1..ac84332 100644 --- a/extension/popup.js +++ b/extension/popup.js @@ -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) {