From 5e5f5162da4cad6837b17dca2d6ace865838551a Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Sat, 22 Feb 2025 17:53:14 -0500 Subject: [PATCH] Oops, one more --- site/static/js/comments.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/static/js/comments.js b/site/static/js/comments.js index c8c4e56..3dae905 100644 --- a/site/static/js/comments.js +++ b/site/static/js/comments.js @@ -1,7 +1,7 @@ let hasLoadedComments = false; const commentsContainer = document.getElementById("comments-container"); commentsContainer.addEventListener("toggle", (_) => { - if (container.open && !hasLoadedComments) { + if (commentsContainer.open && !hasLoadedComments) { hasLoadedComments = true; fetchComments(); }