diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index d9eb238..d650d40 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -17,13 +17,12 @@
document.querySelectorAll('pre code').forEach((block) => {
hljs.highlightBlock(block);
});
-
setMenuListener();
});
+
function setMenuListener() {
var menuToggle = document.querySelector('.menu-toggle');
var body = document.querySelector('body');
-
menuToggle.addEventListener('click', function() {
body.classList.toggle('no-scroll');
}, false);