mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-03-23 12:17:14 +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;
|
||||
}
|
||||
|
||||
if (content.contains(event.target)) {
|
||||
if (content.classList.contains('open')) {
|
||||
close(burger, content, body, root);
|
||||
}
|
||||
if (content.contains(event.target) && content.classList.contains('open')) {
|
||||
close(burger, content, body, root);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue