Skip to content

Commit

Permalink
fix: disqus configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
techfg committed Dec 24, 2024
1 parent d915c1c commit 9f7b748
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion site/src/components/disqus.astro
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ const { pageId, pageUrl } = Astro.props;
}
</style>
<script is:inline>
const disqus_config = function () {
// NOTE - This must be a var as its wrapped by disqus which expects
// it on window.disqus_config and it modifies `this`
var disqus_config = function () {
const container = document.getElementById('disqus_thread');
this.page.url = container.dataset.disqusUrl;
this.page.identifier = container.dataset.disqusId;
Expand Down

0 comments on commit 9f7b748

Please sign in to comment.