Skip to content

Commit

Permalink
make the clear buttton actually work
Browse files Browse the repository at this point in the history
  • Loading branch information
samolukadjo committed Sep 16, 2024
1 parent ff7c1eb commit cea881f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions wungle-extension/browserAction/script.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
const input = document.getElementById("wungleTextArea");
const button = document.getElementById("wungleButton");
const result = document.getElementById("wungleResult");
const clearButton = document.getElementById("clearButton");

clearButton.addEventListener("click", () => {
input.value = "";
result.textContent = "";
browser.storage.local.remove("textToBeWungled");
});

const development = true;

Expand Down

0 comments on commit cea881f

Please sign in to comment.