Skip to content

Commit

Permalink
removed alert after encryption
Browse files Browse the repository at this point in the history
  • Loading branch information
eddieoz committed May 12, 2024
1 parent 40114a2 commit 0ffb4ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -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." });
Expand Down
2 changes: 1 addition & 1 deletion src/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
}
Expand Down

0 comments on commit 0ffb4ff

Please sign in to comment.