Answer the question
In order to leave comments, you need to log in
How to send data from popup.js to background.js?
What is the easiest way to pass data from popup.js to background.js?
Will this one work?
popup
chrome.runtime.sendMessage({site:sait,time:localStorage[sait]});
chrome.runtime.onMessage.addListener(
function(request, sender, sendResponse) {
//
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question