* improved MqTT
* fix menu active item
This commit is contained in:
lumapu 2023-04-28 23:43:00 +02:00
parent ad9fda4e28
commit f67a68e852
4 changed files with 10 additions and 4 deletions

View file

@ -78,7 +78,7 @@ function parseNav(obj) {
if(i == 2)
continue;
var l = document.getElementById("nav"+i);
if(window.location.pathname == "/" + l.href.split('/').pop())
if(window.location.pathname == "/" + l.href.substring(0, l.href.indexOf("?")).split('/').pop())
l.classList.add("active");
if(obj["menu_protEn"]) {