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

Fix disable-timeline on desktop #545

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

CNBorn
Copy link

@CNBorn CNBorn commented Apr 11, 2024

Issue

"Disable timeline" wasn't working properly on the desktop. Redirecting to twitter.com lands on "/home" instead of redirecting to disableTimelineRedirect.

Cause

It was caused by unable to locate the "disableTimelineRedirect" most likely due to a rendering timing issue.

error I found when I was debugging locally

截屏2024-04-10 下午9 46 24

Solution

Add setTimeout, I also try to make the redirect straightforward: instead of locating the link, why can't we just redirect to the path? Let me know if this impacts other observer behaviours.

@CNBorn CNBorn marked this pull request as ready for review April 11, 2024 01:49
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.

None yet

1 participant