Oops, one more

This commit is contained in:
Shadowfacts 2025-02-22 17:53:14 -05:00
parent 7712ab9c58
commit 5e5f5162da

View File

@ -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();
}