diff options
Diffstat (limited to 'layouts/partials/menu/menu_alltaxa.html')
-rw-r--r-- | layouts/partials/menu/menu_alltaxa.html | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/layouts/partials/menu/menu_alltaxa.html b/layouts/partials/menu/menu_alltaxa.html index f815784..0d83ea9 100644 --- a/layouts/partials/menu/menu_alltaxa.html +++ b/layouts/partials/menu/menu_alltaxa.html @@ -3,8 +3,10 @@ </div> <script> let resetMenus = function() { - resetMainMenu(); - document.querySelector(".all-menu").classList.add("d-none"); + if (vw.matches) { + resetMainMenu(); + document.querySelector(".all-menu").classList.add("d-none"); + } if (document.querySelector(".dropdown-content")) { resetSectionMenu(); zeroHeight(document.querySelector(".dropdown-content")); |