Skip to content Skip to sidebar Skip to footer

Javascript Does Not Work In Chrome Extensions

Inside chrome-extension:///hello.html, the following code: JS does not work? How to make it work?

Solution 1:

You cannot use inline JavaScript in a Chrome extension as per enforced Content Security Policy.

You will need to get rid of it, by placing it in an external JS file.

Post a Comment for "Javascript Does Not Work In Chrome Extensions"