aboutsummaryrefslogtreecommitdiff
path: root/src/view/form.ts
diff options
context:
space:
mode:
authorJoris2021-05-18 12:56:36 +0200
committerJoris2021-05-18 12:56:36 +0200
commitcde24cbf3fbc418af3c98d82e47dcd5df71e5b26 (patch)
tree994d532d2d7196ca2dda6f39cdfba36f83d455ce /src/view/form.ts
parentd1ce8774ec3291374c222c8f64c085e3a99f6147 (diff)
downloadtabata-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.ts2
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)
}},