Temp fix for compile bug

This commit is contained in:
A McIlwraith 2024-07-15 07:57:46 -04:00
parent 1c0186d4fe
commit 4c394e5215

View File

@ -185,8 +185,8 @@ module.exports = {
document.querySelectorAll("article").forEach((a) => { document.querySelectorAll("article").forEach((a) => {
if ( a.getAttribute("data-template") != "none" ) { if ( a.getAttribute("data-template") != "none" ) {
// why are threshold: 0, rootMargin: 50vh throwing an error?
const observer = new IntersectionObserver((articles, { threshold: 0, rootMargin: 50vh}) => { const observer = new IntersectionObserver((articles, { }) => {
articles.forEach(article => { articles.forEach(article => {
let a = article.target; let a = article.target;