summaryrefslogtreecommitdiff
path: root/web/src/jsx.tsx
diff options
context:
space:
mode:
authornavewindre <boneyaard@gmail.com>2025-11-11 08:57:25 +0100
committernavewindre <boneyaard@gmail.com>2025-11-11 08:57:25 +0100
commite52a00fad93831dfd7cf6fe9cdec8e1aaa3c2ccb (patch)
treec8be7f88360a7cbc57a8dd4dba28c012a178fb53 /web/src/jsx.tsx
parentee4ca553a1234f9c5c0584b7897b41049e420685 (diff)
fix
Diffstat (limited to 'web/src/jsx.tsx')
-rw-r--r--web/src/jsx.tsx4
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;