diff options
Diffstat (limited to 'layouts/partials/footer.html')
-rw-r--r-- | layouts/partials/footer.html | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index a3b9321..6d8475a 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -131,5 +131,6 @@ ); }); - document.querySelector(`.show-all`).addEventListener("click", showAll); + const showAllButton = document.querySelector(`.show-all`) + if(showAllButton) showAllButton.addEventListener("click", showAll); </script> |