Bad Code examples twitch.ext
https://dev.twitch.tv/docs/extensions/reference#javascript-helper
Every since refernce to each function is
twitch.ext
This ASSUMES the developer has cast var twitch = window.Twitch
somewhere.
It would be more clear if each code reference did
window.Twitch.ext
instead, or mention that twitch
is a variable expected to be cast by the developer
There is also some inconsistency where twitch.ext and window.Twitch.ext are used inchangably
1
vote
![](https://secure.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?size=40&default=https%3A%2F%2Fstatic-cdn.jtvnw.net%2Fjtv_user_pictures%2Ffc22a9e2-7bfa-43a0-94d3-04bb210cdcf6-profile_image-150x150.png)