diff --git a/themes/red/assets/js/site.js b/themes/red/assets/js/site.js index fa50977..f502221 100644 --- a/themes/red/assets/js/site.js +++ b/themes/red/assets/js/site.js @@ -1,7 +1,5 @@ function checkWidth() { - if (window.matchMedia('(max-device-width: 768px)').matches) { - document.getElementById("nav-menu").open = false; - } else { + if (!window.matchMedia('(max-device-width: 768px)').matches) { document.getElementById("nav-menu").open = true; } }