From 72e2af12e0f2b839a43e00906e4be393535b4ff4 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 22 Jan 2022 00:48:06 +0200 Subject: [PATCH] dasdsa --- files/templates/submission.html | 6 +++--- files/templates/submit.html | 4 ++-- files/templates/userpage.html | 2 +- files/templates/userpage_comments.html | 2 +- files/templates/userpage_private.html | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) 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