Skip to content Skip to sidebar Skip to footer

Chrome Extension Won't Load My JavaScript From The Popup File

I'm working on building a Chrome extension for a forum, but the problem is the JavaScript for my popup.html won't do anything. I added alert('popup.js running...') at the top and i

Solution 1:

I had the same exact problem with an extension of mine, I believe it was fixed after I added this to the manifest file.

manifest.json

"content_security_policy": "script-src 'self' 'unsafe-eval'; object-src 'self'"

More info here: http://developer.chrome.com/extensions/contentSecurityPolicy.html.


Post a Comment for "Chrome Extension Won't Load My JavaScript From The Popup File"