Yet another bugfix
This commit is contained in:
parent
5003c23a91
commit
4e06d63e85
@ -43,7 +43,7 @@
|
||||
Array.from(navlinks).forEach(element => {
|
||||
let ref = element.href.substr(element.href.lastIndexOf('/'), element.href.length);
|
||||
|
||||
if (window.location.href.includes(ref) || element.href === 'index.html') {
|
||||
if (window.location.href.includes(ref) || element.href.includes('index.html')) {
|
||||
element.setAttribute('class', 'active');
|
||||
}
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user