From e52a00fad93831dfd7cf6fe9cdec8e1aaa3c2ccb Mon Sep 17 00:00:00 2001 From: navewindre Date: Tue, 11 Nov 2025 08:57:25 +0100 Subject: fix --- web/src/jsx.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'web/src/jsx.tsx') diff --git a/web/src/jsx.tsx b/web/src/jsx.tsx index 98ca440..64a8aad 100644 --- a/web/src/jsx.tsx +++ b/web/src/jsx.tsx @@ -44,11 +44,10 @@ export function addRoute( name: string, component: Function ) { let path = name; let wildcard = false; if( path[path.length - 1] === "*" ) { - console.log( "name" ); path = path.substring( 0, path.length - 1 ); wildcard = true; } - + routes[path] = { path, component, wildcard }; } @@ -77,7 +76,6 @@ export function onPostNavigate( callback: Function ) { * replaces the root element with the route component **/ export function navigate( route: string ) { - console.log( route ); let url = new URL( window.location.href ); let cb = routeForPath( route ); url.pathname = route; -- cgit v1.2.3