fix bolding when filename have an accent
This commit is contained in:
parent
d3d99fd226
commit
d14c3a8781
1 changed files with 1 additions and 1 deletions
|
@ -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";
|
||||||
|
|
Loading…
Reference in a new issue