Skip to content

Commit

Permalink
Create popup.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Abhijeetbyte authored Nov 7, 2023
1 parent 632b5f5 commit cd21faf
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions popup.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
document.addEventListener("DOMContentLoaded", function () {
document.getElementById("clickButton").addEventListener("click", () => {
// Send a message to the background script to perform the action
chrome.runtime.sendMessage({ action: "navigate" });
});
});

0 comments on commit cd21faf

Please sign in to comment.