Remove jQuery from extension examples
https://dev.twitch.tv/docs/extensions/reference#javascript-helper
Change
window.Twitch.ext.onAuthorized(function(auth) {
$.ajax({
url: '/<some backend path>',
type: 'GET',
headers: {
'x-extension-jwt': auth.token,
}
});
});
to using fetch, or STATE it's a jQuery example
1
vote
BarryCarlyon
shared this idea
We’ve updated the examples to use fetch vs. jQuery.