aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-07-13 18:14:15 +0300
committerkaotisk <kaotisk@arching-kaos.org>2024-07-13 18:14:15 +0300
commit96cd1935f750a875c2bce348958f954a6b2b495b (patch)
treea3355f67569d646eea5f3b98dffef5bf33074889 /src
parentf6fc624b2a4c5fff80e8e070b5cb065bcced0aed (diff)
downloadarching-kaos-web-ui-96cd1935f750a875c2bce348958f954a6b2b495b.tar.gz
arching-kaos-web-ui-96cd1935f750a875c2bce348958f954a6b2b495b.tar.bz2
arching-kaos-web-ui-96cd1935f750a875c2bce348958f954a6b2b495b.zip
workaround
Diffstat (limited to 'src')
-rw-r--r--src/js/arching-kaos-spa-router.js8
1 files changed, 8 insertions, 0 deletions
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 {