Extension development: video would help

Am now by-passing the rig, serving the front-end of twitchdev/extensions-hello-world w. help of a node server.

Loading public/panel.html, the UI appears but the button is never enabled because neither onContext nor onAuthorized are getting invoked, despite presence of the helper:

panel.html:

<body>
    <div id="app" class="full-height"></div>
    <script src="https://extension-files.twitch.tv/helper/v1/twitch-ext.min.js"></script>
    <script src="https://code.jquery.com/jquery-3.3.1.min.js"
            integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8="
            crossorigin="anonymous"></script>
    <script src="viewer.js" type="text/javascript"></script>
...

viewer.js:

...
twitch.onContext(function(context) {
  console.log("onContext");
  //twitch.rig.log(context);
});

twitch.onAuthorized(function(auth) {
  console.log("onAuthorized");
  // save our credentials
  token = auth.token;
  tuid = auth.userId;

  // enable the button
  $('#cycle').removeAttr('disabled');

  setAuth(token);
  $.ajax(requests.get);
});
...

Time to re-read the docs. :frowning_face: