diff options
Diffstat (limited to 'src/main.ts')
-rw-r--r-- | src/main.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.ts b/src/main.ts index 436a217..8cc1a91 100644 --- a/src/main.ts +++ b/src/main.ts @@ -4,10 +4,10 @@ import * as Timer from 'view/timer' import * as Router from 'router' export function showPage(route: Router.Route) { - if (route.kind === Router.Kind.Form) { + if (route.name === 'form') { document.body.innerHTML = '' document.body.appendChild(Form.view(route.config, showPage)) - } else if (route.kind === Router.Kind.Timer) { + } else if (route.name === 'timer') { document.body.innerHTML = '' document.body.appendChild(Timer.view(route.config, showPage)) } |