Thanks but as far as I understand it everything runs as an .js file. Everything but the https://extension-files.twitch.tv/helper/v1/twitch-ext.min.js and the external JSON-script.
The javascripts are loaded on the header of the video_overlay.html
the function loadJSON is in one of those .js-files in the package.
Since I’m new to this: What is the meaning of inline scripts and evals. I don’t get that seeing that pointed line.
Thanks for your help!
EDIT:
Maybe I have made a wrong embed, so my header looks like this:
<script src="https://extension-files.twitch.tv/helper/v1/twitch-ext.min.js"></script>
<script src="./src/js/jquery-3.3.1.min.js"></script>
<link href="https://fonts.googleapis.com/css?family=Montserrat|Open+Sans|Oswald" rel="stylesheet">
<script src="./src/js/TweenMax.js"></script>
<script src="./src/js/TimelineMax.js"></script>
<script src="./src/js/CSSPlugin.js"></script>
<script src="./viewer.js"></script>
<script src="./src/js/mainscript.js"></script>
The JSON happens on the mainscript.js
I’ve build in a console output which fires (early in the code) so the script seems to be embedded ok.