You do have something like
window.Twitch.ext.configuration.onChanged(() => {
var broadcaster = window.Twitch.ext.configuration.broadcaster;
if (broadcaster) {
if (broadcaster.content) {
var config = {};
try {
config = JSON.parse(broadcaster.content);
} catch (e) {
console.log(e);
}
//do stuff with config
}
}
});
To read the config you must use window.Twitch.ext.configuration.onChanged to trigger config to be loaded