mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-03-25 05:00:57 +01:00
Merge ifs
This commit is contained in:
parent
5d908b5142
commit
ae17da5331
1 changed files with 2 additions and 4 deletions
|
@ -70,10 +70,8 @@ export function setupBurgerMenu() {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (content.contains(event.target)) {
|
if (content.contains(event.target) && content.classList.contains('open')) {
|
||||||
if (content.classList.contains('open')) {
|
close(burger, content, body, root);
|
||||||
close(burger, content, body, root);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue