Howdy, ok I'm aware that a content script can communicate with the background page using:
chrome.extension.sendRequest({action:'test'}, function(response) {
//code here...
});
someFunction();
But is it possible to communicate synchronously? Basically wait until the response comes back to the content script before executing someFunction()?
If not, is it possible to communicate with the bg page using a normal xmlhttprequest?
Why you ask?
I am loading my content script into the web page on "document_start" (required) and one of my variables in the CS depends on a localStorage variable set in the options page. So I need this localStorage variable from the background page before someFunction() is called.
Thanks in advance.