Open BarryCarlyon opened 1 year ago
Additional Error Case:
+1 It looks like there is something wrong with lazy loading. From my pov two things are annoying with this bug:
The loading of a panel is hardly predictable. What I tested:
For best user experience I want my extension to load (and run some scripts) at the point the viewer opens the stream. This is currently only possible with onscreen extension, but I don't want to waste the streamers slot for this.
+1
This issue also occurs on mobile devices when you open the extension, lock your phone, and then unlock it after an hour. (Tested on IOS)
Brief description
It seems there has been a change where panel extensions do not load if the page is not scrolled down when a viewer loads a given Twitch page of a channel that is live.
If a viewer later scrolls down it's possible that
window.Twitch.ext.viewer.sessionToken
is nullThus resulting in an extension not loading as expected as the expected token is missing.
helixToken is also blank
How to reproduce
I then used inspector to interrogate
window.Twitch.ext.viewer.sessionToken
and it wasnull
Expected behavior
Access Token to be present on scroll down if scroll down is not immedite