Skip to content

Commit 3308c82

Browse files
authored
fix: retry adding button if the dom wasn't ready (#1)
1 parent a90e731 commit 3308c82

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@
6666
}
6767

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

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

0 commit comments

Comments
 (0)