onContext.game empty unless Streamer changes game

Thanks @WLG3R, I’ve tested adding it directly in a script tag on the index.html page (I’m on local test right now, so script tags do fire properly), but no success, I get the exact same result.

Do you reckon this is the correct way of getting the game currently played, on page load?

I don’t know how much top level I can put it :confused:

<script>
      window.Twitch.ext.onContext(function(context, changed) {
        console.log(context);
        console.log(changed);
      });
    </script>