Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • Please expand your question showing your manifest file and the rest of your code. How do you know that "the script was inserted correctly"? Commented Sep 10, 2013 at 11:40
  • @rsanchez Have added the relevant section of the manifest. By "was inserted correctly" I mean that the DOM node was inserted as I would expect, and the log output is printed periodically. The problem is that the value of window.testVar is undefined if I run inject.js from a background script. Commented Sep 10, 2013 at 20:34