diff options
| author | nanxiaobei <nanxiaobei@gmail.com> | 2019-06-13 21:00:32 +0800 |
|---|---|---|
| committer | nanxiaobei <nanxiaobei@gmail.com> | 2019-06-13 21:00:32 +0800 |
| commit | d49599a028e30a658bca5654063c95c5b41e9ecb (patch) | |
| tree | 913963bd3f07d27687a73ccc1c878f655d8fe659 | |
| parent | a43a34fe013d3a3a7523d4bfedbe96a5ec9cc67a (diff) | |
Fix js
| -rw-r--r-- | layouts/partials/footer.html | 1 |
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); } |
