summaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
authornanxiaobei <nanxiaobei@gmail.com>2019-06-13 21:00:32 +0800
committernanxiaobei <nanxiaobei@gmail.com>2019-06-13 21:00:32 +0800
commitd49599a028e30a658bca5654063c95c5b41e9ecb (patch)
tree913963bd3f07d27687a73ccc1c878f655d8fe659 /layouts
parenta43a34fe013d3a3a7523d4bfedbe96a5ec9cc67a (diff)
Fix js
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/footer.html1
1 files changed, 1 insertions, 0 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index 696c202..efcb977 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -16,6 +16,7 @@
}
function setMenuToggleListener() {
const menuToggle = document.querySelector('.menu-toggle');
+ if (!menuToggle) return;
body = document.querySelector('body');
menuToggle.addEventListener('click', menuToggleListener);
}