X-Git-Url: http://unremediatedgender.space/source?p=Ultimately_Untrue_Thought.git;a=blobdiff_plain;f=theme%2Fstatic%2Fjs%2Frecent_comments.js;h=2697756d8a1b816418c720992ccbb4a364b72ffd;hp=18ee00691d20527ef2ea32669cf505ec2b1cf30a;hb=HEAD;hpb=0f9374a08228965c207e0d77fd5adc701a3b461b diff --git a/theme/static/js/recent_comments.js b/theme/static/js/recent_comments.js index 18ee006..1814ef5 100644 --- a/theme/static/js/recent_comments.js +++ b/theme/static/js/recent_comments.js @@ -1,15 +1,13 @@ function getRecentComments() { let container = document.querySelector("#recent-comments-container"); - console.log(container); let request = new XMLHttpRequest(); - request.open('GET', 'http://unremediatedgender.space/isso/latest?limit=5', true); + request.open('GET', 'http://unremediatedgender.space/isso/latest?limit=10', true); request.onload = function() { if (this.status >= 200 && this.status < 400) { let comments = JSON.parse(this.response); - console.log(comments); for (let comment of comments.reverse()) { let p = document.createElement('p'); let a = document.createElement('a');