diff options
author | V <v@anomalous.eu> | 2023-10-06 12:28:10 +0200 |
---|---|---|
committer | V <v@anomalous.eu> | 2023-10-06 12:28:10 +0200 |
commit | 85b56739de7568cf5d2523b7d00c197939cee979 (patch) | |
tree | 3f7208c405b8cd7f8003be980540bb5848af8c8b | |
parent | 661b1dc06c0eee27b0abbabb7cc99a4ee36a4c3d (diff) | |
download | refined-nixpkgs-85b56739de7568cf5d2523b7d00c197939cee979.tar.zst |
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
-rw-r--r-- | content.js | 2 |
1 files changed, 1 insertions, 1 deletions
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) |