diff options
Diffstat (limited to 'web/src/jsx.tsx')
| -rw-r--r-- | web/src/jsx.tsx | 4 |
1 files changed, 1 insertions, 3 deletions
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; |
