fix: oopsies

This commit is contained in:
AdrienLSH 2024-01-05 12:17:23 +01:00
parent 57b318ea81
commit 01d50f1d8c

View File

@ -117,7 +117,7 @@ document.addEventListener("DOMContentLoaded", () => {
} }
}); });
router(location.pathname); router(location.pathname);
document.querySelector('a[href=\'' + location.pathname + '\']').classList.add('active'); document.querySelector('a[href=\'' + location.pathname + '\']')?.classList.add('active');
}); });
export { client, navigateTo } export { client, navigateTo }