hi,
i’ve got some problem with getjson. Actually i developt an chrome extension. $getJson work in the background.js but when i use him in my pop.js he doesn’t work?
$.getJSON(‘https://api.twitch.tv/kraken/streams/Rush’, function(channel) {
if (channel["stream"]==null) { document.getElementById("live").innerHTML='<h3>OFFLINE</h3>';}
if (channel["stream"]!=null) { document.getElementById("live").innerHTML='<h3>ONLINE</h3>';}
}
)