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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
children.forEach((item) => {
|
for (const item in children) {
|
||||||
if (item.innerText.toLowerCase().includes(query.toLowerCase())) {
|
if (item.innerText.toLowerCase().includes(query.toLowerCase())) {
|
||||||
item.style.display = "";
|
item.style.display = "";
|
||||||
uncollapse(item);
|
uncollapse(item);
|
||||||
console.log(query, item.innerText);
|
continue;
|
||||||
} else {
|
}
|
||||||
item.style.display = "none";
|
item.style.display = "none";
|
||||||
}
|
}
|
||||||
});
|
|
||||||
};
|
};
|
||||||
|
|
||||||
window.addEventListener("load", () => {
|
window.addEventListener("load", () => {
|
||||||
|
@ -157,11 +156,12 @@ window.addEventListener("load", () => {
|
||||||
fileTreeElement.style.display = "block";
|
fileTreeElement.style.display = "block";
|
||||||
content.style.display = "none";
|
content.style.display = "none";
|
||||||
button.textContent = "Fermer le menu";
|
button.textContent = "Fermer le menu";
|
||||||
} else {
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
fileTreeElement.style.display = "";
|
fileTreeElement.style.display = "";
|
||||||
content.style.display = "";
|
content.style.display = "";
|
||||||
button.textContent = initialButtonTextContent;
|
button.textContent = initialButtonTextContent;
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
button.addEventListener("click", resetPage);
|
button.addEventListener("click", resetPage);
|
||||||
|
|
Loading…
Reference in a new issue