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:
parent
9c15304340
commit
7b965d18f7
@ -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();
|
||||
}
|
||||
};
|
Loading…
Reference in New Issue
Block a user