mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2023-12-21 10:22:58 +01:00
Fix js
This commit is contained in:
parent
a43a34fe01
commit
d49599a028
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user