From 4e06d63e85f7c0c8b7e5a4de3f6f6fbd896fea03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20P?= Date: Fri, 30 Jul 2021 13:30:17 +0200 Subject: [PATCH] Yet another bugfix --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index dd8f4d5..d9d2009 100644 --- a/index.html +++ b/index.html @@ -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'); } /**