fix bolding when filename have an accent

This commit is contained in:
Mylloon 2024-12-12 19:16:39 +01:00
parent d3d99fd226
commit d14c3a8781
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -148,7 +148,7 @@ window.addEventListener("load", () => {
uncollapse(currentlyOpen); uncollapse(currentlyOpen);
// Bold opened file // Bold opened file
const openedFile = fullpath.split("/").at(-1); const openedFile = decodeURI(fullpath.split("/").at(-1));
currentlyOpen.querySelector("ul").childNodes.forEach((el) => { currentlyOpen.querySelector("ul").childNodes.forEach((el) => {
if (el.innerText === openedFile) { if (el.innerText === openedFile) {
el.style.fontWeight = "bold"; el.style.fontWeight = "bold";