Oops, one more
This commit is contained in:
parent
7712ab9c58
commit
5e5f5162da
@ -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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user