diff --git a/code_comments/htdocs/code-comments.js b/code_comments/htdocs/code-comments.js index fe1cda6..40586ba 100644 --- a/code_comments/htdocs/code-comments.js +++ b/code_comments/htdocs/code-comments.js @@ -1,5 +1,48 @@ var underscore = _.noConflict(); +function addSubscriptionButton() { + if (jQuery('h1').length == 0) { + return; + } + + var rev = new URLSearchParams(window.location.search).get('rev') || ''; + + var button = jQuery( + '