Skip to content

Commit

Permalink
chore: tweak comments script inject time
Browse files Browse the repository at this point in the history
  • Loading branch information
Candinya committed Jun 25, 2024
1 parent bcb00a4 commit 9bf30f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/_config.kratos-rebirth.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,4 @@ additional_injections:
<link src="/comments/gitalk.css" />
after_footer: |
<script src="https://cdnjs.cloudflare.com/ajax/libs/gitalk/1.8.0/gitalk.min.js" integrity="sha512-Z6q/CxNjbGeWbPamDjp/I737f5LnynAOjJl85FlT75YW3eWmldnn2wj3nhMVEaqMeatyUmvKyfCaM5TND0yRhQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script defer async src="/comments/gitalk.js"></script>
<script src="/comments/gitalk.js"></script>
2 changes: 1 addition & 1 deletion source/comments/gitalk.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
};

window.loadComments = loadComments;
window.addEventListener('pjax:complete', () => {
window.addEventListener('pjax:before', () => {
window.loadComments = loadComments;
});
})();

0 comments on commit 9bf30f8

Please sign in to comment.