Sorry if this is a dumb question but i can’t understand why
This doesn’t run
But if i put the console.log into a file
/** log.js ** /
This only happens on hosted test. on local test everything runs.
this is due to the “content-security-policy” property being set by the main twitch site where your extension iframe resides in.
so, in short, it’s behaving this way because it is supposed to do so, you will have to put your script into separate files, away from your markup.
also, if you write your own stuff you should probably set CSP as well, it’s generally the safer and better way and gives more unobtrusive code too. (separation between markup and script)
You should of got a CSP warning in the console anyway. So check for that!