Hi,
Trying to figure out a way to handle settings in the extension.
I assume chrome.storage.local is the way to do it, yet it is not available to the content script. Is this correct?
To side-step this, I send a message to background script (chrome.runtime.sendMessage()), where it is possible to call chrome.storage.local.get() for the specified key. Yet it seems that handling of “return true” is not properly implemented (yet? https://bugzilla.mozilla.org/show_bug.cgi?id=1202481 mentions it, but it seems stuck for over a week now), so I cannot call sendResponse() from inside the .get() callback.
Please let me know if there is a working way to get keys from local storage to content script, or if I just need to wait till this part of the functionality is complete.