Skip to content

Change HTML injection to wait until "Files changed" tab is open #53

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

Merged
1 commit merged into from
Jan 31, 2018

Conversation

stevennoto
Copy link
Contributor

Hi @Yatser, me again. I thought of another enhancement idea while tinkering with another extension.

I noticed that when you open a Pull Request page and it starts on the "Conversation" tab, and you tab over to "Files Changed" by clicking or hitting backtick, the prettypullrequests widgets are not present. I'm guessing at some point GitHub switched that navigation to use ajax/pjax, and as a result you need to reload the page to get the prettypullrequests UI to appear.

I fixed this by changing the HTML injection to effectively wait until the "Files Changed" tab is active. It seems to work in my tests. See what you think. Thanks again!

@ghost
Copy link

ghost commented Nov 23, 2017

I think this is a reasonable fix @stevennoto... I can release this at some point. Thanks for your contribution!

@ghost ghost merged commit 6f7acc8 into brentyates:master Jan 31, 2018
This pull request was closed.
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