fix crash on release
This commit is contained in:
parent
28192ac8c0
commit
c1dbbfb904
1 changed files with 9 additions and 9 deletions
|
@ -98,15 +98,14 @@ const searchFiles = (query, parent, currentFile) => {
|
|||
return;
|
||||
}
|
||||
|
||||
children.forEach((item) => {
|
||||
for (const item in children) {
|
||||
if (item.innerText.toLowerCase().includes(query.toLowerCase())) {
|
||||
item.style.display = "";
|
||||
uncollapse(item);
|
||||
console.log(query, item.innerText);
|
||||
} else {
|
||||
continue;
|
||||
}
|
||||
item.style.display = "none";
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
window.addEventListener("load", () => {
|
||||
|
@ -157,11 +156,12 @@ window.addEventListener("load", () => {
|
|||
fileTreeElement.style.display = "block";
|
||||
content.style.display = "none";
|
||||
button.textContent = "Fermer le menu";
|
||||
} else {
|
||||
return;
|
||||
}
|
||||
|
||||
fileTreeElement.style.display = "";
|
||||
content.style.display = "";
|
||||
button.textContent = initialButtonTextContent;
|
||||
}
|
||||
};
|
||||
|
||||
button.addEventListener("click", resetPage);
|
||||
|
|
Loading…
Reference in a new issue