Skip to content
This repository was archived by the owner on Jan 11, 2024. It is now read-only.

Put inline script in a separate file#1

Open
ento wants to merge 1 commit intoAsana:masterfrom
ento:externalize-scripts
Open

Put inline script in a separate file#1
ento wants to merge 1 commit intoAsana:masterfrom
ento:externalize-scripts

Conversation

@ento
Copy link

@ento ento commented Oct 19, 2012

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

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

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments