updates
This commit is contained in:
@@ -1,6 +1 @@
|
||||
document.querySelectorAll("nav a").forEach((link) => {
|
||||
let locationRegex = new RegExp(`${window.location.pathname}.*?`);
|
||||
if (link.pathname === window.location.pathname) {
|
||||
link.classList.add("active-page");
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user