diff options
Diffstat (limited to 'frontend/src/router-hook.tsx')
| -rw-r--r-- | frontend/src/router-hook.tsx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/frontend/src/router-hook.tsx b/frontend/src/router-hook.tsx index 83d23bf1..ce0c553f 100644 --- a/frontend/src/router-hook.tsx +++ b/frontend/src/router-hook.tsx @@ -92,6 +92,10 @@ class RouterHook extends Logger { this.routerState.addRoute(path, component, props); } + removeRoute(path: string) { + this.routerState.removeRoute(path); + } + deinit() { unpatch(this.gamepadWrapper, 'render'); this.router && unpatch(this.router, 'type'); |
