node-generator-chrome-ninja icon indicating copy to clipboard operation
node-generator-chrome-ninja copied to clipboard

Load patched modules in new browsing contexts

Open vweevers opened this issue 8 years ago • 0 comments

When chrome destroys/reloads a page and extension code (like a content script) is loaded again, it'll load the initial version, without the changes that have been made since. Reproduce:

  • Generate extension with a content script
  • Navigate to a page in chrome
  • Make some changes to the content script
  • Watch it hot reload in the chrome page, nice
  • Open another page, you'll see the old version of the content script (until you make another change).

vweevers avatar Nov 25 '15 15:11 vweevers