diff --git a/src/content.js b/src/content.js index 653d310..7767232 100644 --- a/src/content.js +++ b/src/content.js @@ -218,6 +218,7 @@ async function encryptAndReplaceSelectedTextPGP(sendResponse) { status: "success", message: "Text encrypted and ready to send!", }); + } catch (err) { console.error(err); sendResponse({ status: "error", message: "Failed to encrypt text." }); diff --git a/src/popup.js b/src/popup.js index 7a98909..32ff9a9 100644 --- a/src/popup.js +++ b/src/popup.js @@ -105,7 +105,7 @@ document.getElementById("encrypt").addEventListener("click", () => { { action: "encryptText" }, (response) => { if (response && response.status === "success") { - alert(response.message); + // alert(response.message); } else { alert("Failed to encrypt text."); }