1
0
Fork 0
This commit is contained in:
nanxiaobei 2019-06-13 21:00:32 +08:00
parent a43a34fe01
commit d49599a028

View file

@ -16,6 +16,7 @@
} }
function setMenuToggleListener() { function setMenuToggleListener() {
const menuToggle = document.querySelector('.menu-toggle'); const menuToggle = document.querySelector('.menu-toggle');
if (!menuToggle) return;
body = document.querySelector('body'); body = document.querySelector('body');
menuToggle.addEventListener('click', menuToggleListener); menuToggle.addEventListener('click', menuToggleListener);
} }