Howdy, well, I know that the script content can link to the man page using:
chrome.extension.sendRequest({action:'test'}, function(response) {
But is it possible to communicate synchronously? Basically wait until the response returns to the contents of the script before executing someFunction ()?
If not, is it possible to link to the bg page using regular xmlhttprequest?
Why do you ask?
I upload my script content to the document_start webpage (required), and one of my variables in CS depends on the localStorage variable set on the options page. Therefore, I need this localStorage variable from the background page to calling the Function () function.
Thanks in advance.
source share