Skip to content

Commit

Permalink
Sync with blog.sp.org version
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanv committed Mar 7, 2024
1 parent 170e8b6 commit 2201d6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions layouts/partials/specs/comments.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,14 @@
// Call on Discourse to create a comment iframe
// See https://meta.discourse.org/t/embed-discourse-comments-on-another-website-via-javascript/31963
DiscourseEmbed = {
discourseURL: discourse_url,
discourseUrl: `${discourse_url}/`,
{{ printf "discourseEmbedUrl: '%s'" $page.Permalink | safeJS }},
// className: 'CLASS_NAME',
};

(function () {
var d = document.createElement('script'); d.type = 'text/javascript'; d.async = true;
d.src = DiscourseEmbed.discourseUrl + 'javascripts/embed.js';
d.src = `${DiscourseEmbed.discourseUrl}javascripts/embed.js`;
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(d);
})();

Expand Down

0 comments on commit 2201d6a

Please sign in to comment.