I develop a Chrome extension that sometimes updates its settings in background script via websockets. It also uses a content script to inject a custom script in a web page. My manifest.json is like:
...
   "content_scripts": [
   {
     "all_frames":true,
     "match_about_blank":true,
     "run_at": "document_start",
     "matches": ["*://*/*"],
     "js": ["js/cs.js"]
   }
...
The problem is that I want to store settings from background script somewhere to use it in the content script. I'm aware of messaging and chrome.storage API but they are asynchronous so I can't use it in that way. So basically I'm looking for some persistent synchronous storage that can be accessed both from background and content scripts.
Any ideas? Thanks.
