When I'm getting a message from popup I want to execute a script, simply:
chrome.runtime.onMessage.addListener(function(message, sender, response) {
chrome.tabs.executeScript({file: "content.js"});
});
My problem: content.js
needs the data from message
. How do I pass it?