From 96cd1935f750a875c2bce348958f954a6b2b495b Mon Sep 17 00:00:00 2001 From: kaotisk Date: Sat, 13 Jul 2024 18:14:15 +0300 Subject: workaround --- src/js/arching-kaos-spa-router.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src') diff --git a/src/js/arching-kaos-spa-router.js b/src/js/arching-kaos-spa-router.js index 162f1e2..c1cf13a 100644 --- a/src/js/arching-kaos-spa-router.js +++ b/src/js/arching-kaos-spa-router.js @@ -29,6 +29,14 @@ function locationHashOnChange(){ menuinit(); if ( (locationHashGetter() !== 'undefined') && (locationHashGetter() === '') ){ document.querySelector('#welcome-section').hidden=false; + } + else if ( route.args[1] == "route" ) { + document.querySelector('#welcome-section').hidden=false; + if ( route.args.length === 4 ) { + if ( route.args[2] === "zblock" ) { + seekZblock(route.args[3], ['search', false]); + } + } } else if ( (locationHashGetter() !== 'undefined') && ( menuids.includes(route.menuid))){ document.querySelector(route.menuid).hidden=false; } else { -- cgit v1.2.3