Yet another bugfix

This commit is contained in:
Nicolò P 2021-07-30 13:30:17 +02:00
parent 5003c23a91
commit 4e06d63e85

View File

@ -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');
}
/**