diff --git a/files/templates/submission.html b/files/templates/submission.html index 870ad62c7..f031d4cbf 100644 --- a/files/templates/submission.html +++ b/files/templates/submission.html @@ -16,8 +16,8 @@ {% if success %} {% endif %} @@ -878,7 +878,7 @@ const comments = JSON.parse(localStorage.getItem("comment-counts")) || {} const newTotal = {{p.comment_count}} || ((comments['{{p.id}}'] || {c: 0}).c + 1) comments['{{p.id}}'] = {c: newTotal, t: Date.now()} - window.localStorage.setItem("comment-counts", JSON.stringify(comments)) + localStorage.setItem("comment-counts", JSON.stringify(comments)) {% endif %} })() diff --git a/files/templates/submit.html b/files/templates/submit.html index 8469bcfff..46f8462c6 100644 --- a/files/templates/submit.html +++ b/files/templates/submit.html @@ -195,9 +195,9 @@ {% endblock %} + {% endblock %} diff --git a/files/templates/userpage_comments.html b/files/templates/userpage_comments.html index 1ca5a34ea..aca0b0d12 100644 --- a/files/templates/userpage_comments.html +++ b/files/templates/userpage_comments.html @@ -114,5 +114,5 @@
{{u.username}}
{% endif %} - + {% endblock %} \ No newline at end of file diff --git a/files/templates/userpage_private.html b/files/templates/userpage_private.html index f8b8746ea..0b64af3b0 100644 --- a/files/templates/userpage_private.html +++ b/files/templates/userpage_private.html @@ -48,5 +48,5 @@
{{u.username}}
{% endif %} - + {% endblock %} \ No newline at end of file