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
