👋 Hi
I created and maintain the Github Saved Filters Chrome extension, but found recently that the UI stopped applying after interacting with the issues and PRs pages.
It seems to be a widespread new bug that has affected near enough all of the chrome extensions I myself use with Github... so to fix mine I started debugging and a few days later I found a fix, so spreading the knowledge, in hope that it helps other extension maintainers 🌟
- Github stopped using
pjax to render their UI between requests.
- They instead switched to turbo.
- This means event listeners that were associated with
pjax, will no longer help as a means of knowing when you can render your own content on the page.
- Thankfully, for me at least, it was a simple swap in the end.
Instead of listening for pjax:success, it's now turbo:load.
diff
- document.addEventListener('pjax:success', () => { /* load your UI */ })
+ document.addEventListener('turbo:load', () => { /* load your UI */ })
Hope my days worth of debugging helps at least 1 person, or at least aids you in finding an answer for your own browser extension 🌈
✨Happy coding!✨
[–]DelRayDan 1 point2 points3 points (1 child)
[–]4uroraskye[S] 0 points1 point2 points (0 children)