Skip to content

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

Merged
1 commit merged intobrentyates:masterfrom
stevennoto:inject-only-in-files
Jan 31, 2018
Merged

Change HTML injection to wait until "Files changed" tab is open#53
1 commit merged intobrentyates:masterfrom
stevennoto:inject-only-in-files

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