From 36bd4e43443e39ac30ab4babb0500a2bb7e81339 Mon Sep 17 00:00:00 2001 From: exyi Date: Sun, 18 Oct 2020 08:39:25 +0000 Subject: [PATCH] Fixed .active hacks in header --- server/Ksp.WebServer/KspPageRewriter.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/Ksp.WebServer/KspPageRewriter.cs b/server/Ksp.WebServer/KspPageRewriter.cs index c6aede6..18e3410 100644 --- a/server/Ksp.WebServer/KspPageRewriter.cs +++ b/server/Ksp.WebServer/KspPageRewriter.cs @@ -40,6 +40,8 @@ namespace Ksp.WebServer encyklopedie.SetAttribute("href", "/grafik"); if ("grafik" == path) { + foreach (var li in document.QuerySelectorAll("#menu ul li.active")) + li.ClassList.Remove("active"); encyklopedie.ParentElement.ClassList.Add("active"); } }