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.
This commit is contained in:
A McIlwraith 2024-07-14 16:36:11 -04:00
parent 9c15304340
commit 7b965d18f7

View File

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