I\'m trying to make radio stream chrome extension but there is a problem. When I run my script in browser like normal JS+HTML+CSS it works, but when I try runing it like Chr
I know I'm a bit late to this, but based on OP's comments to Xan's answer, another component of solving the issue would be to adjust the AJAX call that is implied.
I was getting the same error and adjusted my API call to be:
dataType: 'json'
instead of:
dataType: 'jsonp'
(Solved the issue, granted, one will still need to remove any inline scripting.)