diff options
author | Joris | 2021-05-18 12:56:36 +0200 |
---|---|---|
committer | Joris | 2021-05-18 12:56:36 +0200 |
commit | cde24cbf3fbc418af3c98d82e47dcd5df71e5b26 (patch) | |
tree | 994d532d2d7196ca2dda6f39cdfba36f83d455ce /src/view/form.ts | |
parent | d1ce8774ec3291374c222c8f64c085e3a99f6147 (diff) | |
download | tabata-cde24cbf3fbc418af3c98d82e47dcd5df71e5b26.tar.gz tabata-cde24cbf3fbc418af3c98d82e47dcd5df71e5b26.tar.bz2 tabata-cde24cbf3fbc418af3c98d82e47dcd5df71e5b26.zip |
Improve route type
Diffstat (limited to 'src/view/form.ts')
-rw-r--r-- | src/view/form.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/view/form.ts b/src/view/form.ts index 0b04cfb..b0d5827 100644 --- a/src/view/form.ts +++ b/src/view/form.ts @@ -32,7 +32,7 @@ export function view(config: Config.Config, showPage: (route: Router.Route) => v { className: 'g-Form' , onsubmit: (e: Event) => { e.preventDefault() - const timerRoute = { kind: Router.Kind.Timer, config } + const timerRoute: Router.Route = { name: 'timer', config } history.pushState({}, '', Router.toString(timerRoute)) showPage(timerRoute) }}, |