From 85b56739de7568cf5d2523b7d00c197939cee979 Mon Sep 17 00:00:00 2001 From: V Date: Fri, 6 Oct 2023 12:28:10 +0200 Subject: Fix extension not running beyond first page load GitHub seemingly switched from pjax to [Turbo], which understandably uses differently-named events for signalling content updates. Judging by the Refined GitHub issue tracker, this happened in mid-2022.[1][2] [Turbo]: https://github.com/hotwired/turbo [1]: https://github.com/refined-github/refined-github/pull/5720 [2]: https://github.com/refined-github/refined-github/pull/5742 --- content.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'content.js') diff --git a/content.js b/content.js index 1df4deb..4ef1f33 100644 --- a/content.js +++ b/content.js @@ -32,4 +32,4 @@ function sprongulate() { sprongulate() // ...and once every time there is new page content. -document.addEventListener('pjax:end', sprongulate) +document.addEventListener('turbo:render', sprongulate) -- cgit 1.4.1