From b66f638a81b8133b795a4757c3391afc87c54ba3 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Wed, 6 Sep 2023 23:30:15 +0300 Subject: Introduced SPA router and make use of it --- src/js/menu-magic.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/js/menu-magic.js') diff --git a/src/js/menu-magic.js b/src/js/menu-magic.js index b4ee247..7abd050 100644 --- a/src/js/menu-magic.js +++ b/src/js/menu-magic.js @@ -44,7 +44,8 @@ function menuinit(){ */ function menusel(m){ menuinit(); - document.querySelector(m.id.replace('/','')).hidden=false; + // document.querySelector(m.id.replace('/','')).hidden=false; + locationHashSetter(m.id); mainContainer.style.display = 'block'; if ( isMobile ) { -- cgit v1.2.3