mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-02 05:59:21 +03:00
Array.from() to spread syntax
This commit is contained in:
parent
07b002a66a
commit
df1d0fc8d6
6 changed files with 27 additions and 7 deletions
2
vendors/bootstrap/js/bootstrap.native.js
vendored
2
vendors/bootstrap/js/bootstrap.native.js
vendored
|
|
@ -67,7 +67,7 @@ window.BSN = (() => {
|
|||
self.show = () => {
|
||||
menu = parent.querySelector('.dropdown-menu');
|
||||
menuItems = [];
|
||||
Array.from(menu.children).forEach(child => {
|
||||
[...menu.children].forEach(child => {
|
||||
child.children.length && (child.children[0].tagName === 'A' && menuItems.push(child.children[0]));
|
||||
child.tagName === 'A' && menuItems.push(child);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue