diff --git a/src/utils.ts b/src/utils.ts index 932d382..f32f85c 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -1,12 +1,12 @@ -export function changePathVisibility(path: string, hide: boolean) { +export async function changePathVisibility(path: string, hide: boolean) { let n = document.querySelector(`[data-path="${path}"]`); if (!n) { return; - }; + } let p = n.parentElement if (hide) { p.style.display = `none` } else { p.style.display = ``; - }; -}; \ No newline at end of file + } +}