cookie or localStorage with chrome extensions

后端 未结 4 1471
我在风中等你
我在风中等你 2020-12-21 09:21

I\'ve read all the other q\'s here regarding the topic but couldn\'t solve my problem.
I\'m setting on my website the email of the user in the localStorage and i want to

4条回答
  •  孤城傲影
    2020-12-21 10:01

    Please see this:

    http://code.google.com/chrome/extensions/content_scripts.html#host-page-communication

    Content scripts are run in a separate JavaScript world, which means the content script's localStorage is different from the website's localStorage. The only thing the two share is the DOM, so you'll need to use DOM nodes/events to communicate.

提交回复
热议问题