Asana/Chrome-Extension-Example — pull request #1 by ento (2012-10-19 11:25:18+00:00)
Title: Put inline script in a separate file

Problem:
Inline JavaScript in `background.html` is not being executed.

Cause:
This is because of the [Content Security Policy][1] adopted by Chrome's extension system. This restriction [cannot be relaxed][2].

Fix:
This patch externalizes the JavaScript code found in `background.html` to a file called `background.js`.

[1]: http://developer.chrome.com/trunk/extensions/contentSecurityPolicy.html#JSExecution
[2]: http://developer.chrome.com/trunk/extensions/contentSecurityPolicy.html#relaxing-inline-script