From 062c48af1ba842ba84830b8ac4b4ef9f10bb4cd7 Mon Sep 17 00:00:00 2001 From: sairaj mote Date: Sun, 15 Oct 2023 04:39:16 +0530 Subject: [PATCH] Bug fix --- index.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index b756bdd..55a3836 100644 --- a/index.html +++ b/index.html @@ -49,7 +49,9 @@ Send - + + +
  • @@ -613,10 +615,13 @@ }, routingEnd(state) { const { page } = state + if (!page) + page = 'home' const previousTarget = getRef('main_navbar').querySelector('.nav-item--active') previousTarget?.classList.remove('nav-item--active') previousTarget.querySelector('.nav-item__indicator')?.remove() const target = getRef('main_navbar').querySelector(`.nav-item[href="#/${page}"]`) + console.log(target, page) target.classList.add('nav-item--active') target.append(html.node``) }