aboutsummaryrefslogtreecommitdiff
path: root/client/src
diff options
context:
space:
mode:
Diffstat (limited to 'client/src')
-rw-r--r--client/src/Client.elm16
1 files changed, 12 insertions, 4 deletions
diff --git a/client/src/Client.elm b/client/src/Client.elm
index 1db70c7..77168c1 100644
--- a/client/src/Client.elm
+++ b/client/src/Client.elm
@@ -3,11 +3,19 @@ module Client exposing (main)
import Browser
import Html
-main : Program () () msg
-main = Browser.element
- { init = \() -> ((), Cmd.none)
+type Message
+ = Ignore
+
+main : Program () () Message
+main = Browser.application
+ { init = \() url key -> ((), Cmd.none)
, update = \_ model -> (model, Cmd.none)
, subscriptions = \_ -> Sub.none
- , view = \model -> Html.h1 [] [Html.text "Hi"]
+ , view = \model ->
+ { title = "Client"
+ , body = [Html.h1 [] [Html.text "Hi"]]
+ }
+ , onUrlChange = \url -> Ignore
+ , onUrlRequest = \urlRequest -> Ignore
}