From 7b965d18f748a20a9f69c9ffa2224f6acf8e7853 Mon Sep 17 00:00:00 2001 From: A McIlwraith Date: Sun, 14 Jul 2024 16:36:11 -0400 Subject: [PATCH] Removed out of context a Can't call an article outside of the query selector all. As this should only run once, you'd need to address the specific article. --- src/js/core/_core.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/core/_core.js b/src/js/core/_core.js index 72636d0..f605a91 100644 --- a/src/js/core/_core.js +++ b/src/js/core/_core.js @@ -181,7 +181,7 @@ module.exports = { } } - if (typeof args.beforeArticleLoad == "function") args.beforeArticleLoad(a); + if (typeof args.beforeArticleLoad == "function") args.beforeArticleLoad(); document.querySelectorAll("article").forEach((a) => { if ( a.getAttribute("data-template") != "none" ) { @@ -270,6 +270,6 @@ module.exports = { } }) - if (typeof args.afterArticleLoad == "function") args.afterArticleLoad(a); + if (typeof args.afterArticleLoad == "function") args.afterArticleLoad(); } }; \ No newline at end of file