Yup.
heres a relevant code snippet that might help:
window.Twitch.ext.onAuthorized((auth) => {
// do size check here
});
var previousContext = '';
window.Twitch.ext.onContext((cng) => {
console.log('Context', cng);
if (previousContext) {
if (cng.displayResolution != previousContext.displayResolution) {
// do the size check here
}
} else if (cng != previousContext) {
// do the size check here
}
previousContext = cng;
});
I check and do sizing “at boot” and when the context is read as changed.