since I use popup page as my settings page I save settings in popup's localStorage and retrieve those settings using sendRequest from content script sent to onRequest event on popup page. it works fine - although since my problem of multiple requests (http:// groups.google.com/group/chromium-extensions/msg/4c2be695a35e58d4) I'm thinking about transfering localStorage and onRequest to background page (which seems to not multiply) and use it as a "server" for data storage and use sendRequest on both - popup page and content scripts - to save/read those settings.
On 11 Gru, 18:22, Anand Rangarajan <a...@google.com> wrote: > Hi Folks, > > Just want to confirm this, because the options page documentation does not > explicit say this. > Is it possible to access localStorage from content scripts? If you have some > options that change > the behavior of the content script, is it possible to achieve this only by > having the content script > send messages to the background page and get the options this way? > > thanks much, > anand -- You received this message because you are subscribed to the Google Groups "Chromium-extensions" group. To post to this group, send email to chromium-extensi...@googlegroups.com. To unsubscribe from this group, send email to chromium-extensions+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/chromium-extensions?hl=en.