Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wait for page to load #203

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Wait for page to load #203

wants to merge 1 commit into from

Conversation

stefansundin
Copy link
Owner

I encountered an issue where I opened the popup before a page on dr.dk had the chance to finish loading. Because it had been a while since I visited the website, the token in my localStorage had expired and I got an error.

This would probably only happen if you bookmarked a video like I did, so it should be a very rare occurrence.

I probably won't merge this, but since I already wrote it to test it out, I'll leave it here for now. This is probably insufficient too since just because document.readyState === 'complete' it probably doesn't mean that the token has been updated.

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.

1 participant