also capitalize dir entries

This commit is contained in:
Mylloon 2024-12-14 11:00:38 +01:00
parent afb0ad038f
commit fde3435698
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -30,7 +30,7 @@ const buildFileTree = (parent, data, location) => {
if (item.is_dir) { if (item.is_dir) {
// Directory // Directory
li.textContent = item.name; li.textContent = capitalize(item.name);
li.classList.add("collapsed"); li.classList.add("collapsed");
// Toggle collapsing on click // Toggle collapsing on click