Skip to content

Commit

Permalink
pass along replaced widget types from widget script
Browse files Browse the repository at this point in the history
  • Loading branch information
ablanathtanalba committed Sep 23, 2021
1 parent 2184ccd commit 90abda2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/js/contentscripts/socialwidgets.js
Original file line number Diff line number Diff line change
Expand Up @@ -673,6 +673,12 @@ function replaceIndividualButton(widget) {
el.parentNode.replaceChild(replacementEl, el);
});
});

// send the replaced widgets information to the popup
chrome.runtime.sendMessage({
type: "sendReplacedWidgetsToPopup",
widgetName: widget.name
});
}

/**
Expand Down

0 comments on commit 90abda2

Please sign in to comment.