Skip to content

Conversation

@Spring3
Copy link
Owner

@Spring3 Spring3 commented May 29, 2021

So it looks like twitch is displaying the channel point button based on it's internally stored timestamps.
This means that if a button is rendered and hasn't been clicked on time, the next time it appears in 15 minutes from the moment it was rendered, not from the moment it was clicked.

And I noticed sometimes that if I switched to a channel, where apparently during the previous session the button was clicked with a delay, it was hanging and the content script wasn't awake on time to click it again. And it ended in an endless loop of button being rendered, hanging there for some time, before clicked with yet another delay.

I think that the problem lies in redirects and the intervals being left in the same state as before the redirect.

This PR should fix it.
I am currently testing it locally to see if I notice the same behaviour appear again. Hopefully not and this can go in v1.2.4

@Spring3 Spring3 self-assigned this May 29, 2021
@Spring3 Spring3 force-pushed the fix/reset-timeout-on-redirect branch from 4425dd0 to e769820 Compare May 29, 2021 00:47
@Spring3 Spring3 merged commit e191559 into develop May 29, 2021
@Spring3 Spring3 deleted the fix/reset-timeout-on-redirect branch May 29, 2021 01:48
Spring3 added a commit that referenced this pull request May 29, 2021
* chore: bump dependencies

* fix: reset timeout and interval when redirected within twitch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants