Fix navigation menu closing too often
This commit is contained in:
parent
8326ba2b2e
commit
a56cfba95c
1 changed files with 1 additions and 3 deletions
|
@ -1,7 +1,5 @@
|
||||||
function checkWidth() {
|
function checkWidth() {
|
||||||
if (window.matchMedia('(max-device-width: 768px)').matches) {
|
if (!window.matchMedia('(max-device-width: 768px)').matches) {
|
||||||
document.getElementById("nav-menu").open = false;
|
|
||||||
} else {
|
|
||||||
document.getElementById("nav-menu").open = true;
|
document.getElementById("nav-menu").open = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue