fix(github): Fix projects page numElem not passing #1998
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is my first PR in this repo, I read the Contributing.md but let me know if I missed anything!
🌟 What does this PR do?
The current plugin doesn't pass the issue or PR number on GitHub projects through to the toggl button on there. It looks like GitHub might have changed the class the plugin was using to select the element.
After the fix the numElem passes, for example below the
![Screen Shot 2021-08-16 at 8 25 17 AM](https://user-images.githubusercontent.com/7334882/129564626-f16cd819-5249-4ff0-83c0-a51e2429f6e5.png)
#1569
is now being passed:🐛 Recommendations for testing
Load the plugin in chrome and firefox, then go to a project page (e.g. a project on this repo) and click a ticket and click the "Start Timer". It should now show the
numElem
being passed.📝 Links to relevant issues or information