diff options
Diffstat (limited to 'src/main/scala')
-rw-r--r-- | src/main/scala/reading/Main.scala | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/main/scala/reading/Main.scala b/src/main/scala/reading/Main.scala index f832c66..66e9ce1 100644 --- a/src/main/scala/reading/Main.scala +++ b/src/main/scala/reading/Main.scala @@ -9,13 +9,13 @@ import reading.utils.RxUtils._ object Main extends JSApp { def main(): Unit = { - dom.document.body.appendChild( + dom.document.body.appendChild { Rx { - Route.current() match { - case Route.Books(filters, detail) => component.Index(filters, detail) - } - }.render - ) + Route.current() match { + case Route.Books(filters, detail) => component.Index(filters, detail) + } + }.render + } () } } |