diff --git a/themes/red/assets/js/site.js b/themes/red/assets/js/site.js index 26f121d..c732542 100644 --- a/themes/red/assets/js/site.js +++ b/themes/red/assets/js/site.js @@ -2,7 +2,7 @@ function checkWidth() { let navmenu = document.getElementById("nav-menu"); // If the device somehow gains the stick sidebar, make sure it's open - if (window.matchMedia('(max-device-width: 768px)').matches) { + if (!window.matchMedia('(max-device-width: 768px)').matches) { navmenu.open = true; } }