Skip to content

Commit

Permalink
logs cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Wozacosta committed Nov 2, 2024
1 parent 77595ef commit f4ff581
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/content_script.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,12 @@ const elements = Array.from(ercEipElements)
});

chrome.runtime.sendMessage({ elements: elements });
console.log("SETTING STORAGE")
localStorage.setItem("ethStandards-itemsInPage", JSON.stringify(elements));

/*
* The popup cannot directly access the content script, so we need to use the background script as a mediator.
*/
console.log("CREATEING LISTENER")
chrome.runtime.onMessage.addListener((request, sender, sendResponse) => {
console.log("RECEIVED MESSAGE", request);
if (request.action === "getElements") {
const elements = JSON.parse(localStorage.getItem("ethStandards-itemsInPage") || "[]");
sendResponse({ elements });
Expand All @@ -42,7 +39,6 @@ chrome.runtime.onMessage.addListener((request, sender, sendResponse) => {
const knownItems = JSON.parse(
localStorage.getItem("ethStandards-knownItems") || "[]"
);
console.log({ knownItems });

ercEipElements.forEach((el) => {
const innerHTML = el.innerHTML;
Expand Down

0 comments on commit f4ff581

Please sign in to comment.