This commit is contained in:
Joshua Goins 2024-02-19 15:47:45 -05:00
parent d02b9f0c74
commit a1e8c8c06f

View file

@ -2,7 +2,7 @@ function checkWidth() {
let navmenu = document.getElementById("nav-menu"); let navmenu = document.getElementById("nav-menu");
// If the device somehow gains the stick sidebar, make sure it's open // 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; navmenu.open = true;
} }
} }