Skip to content

Commit

Permalink
fix: retry adding button if the dom wasn't ready (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
patak-dev committed Apr 14, 2023
1 parent a90e731 commit 3308c82
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
}

run()
setTimeout(run, 500) // deduped, no harm in making sure the dom is ready

// listen to github page loaded event
document.addEventListener('pjax:end', () => run())
Expand Down

0 comments on commit 3308c82

Please sign in to comment.