diff options
Diffstat (limited to 'picarones-elm/index.html')
-rw-r--r-- | picarones-elm/index.html | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/picarones-elm/index.html b/picarones-elm/index.html index 66fe158..4fe72c7 100644 --- a/picarones-elm/index.html +++ b/picarones-elm/index.html @@ -10,8 +10,11 @@ <body> <div id="elm"></div> <script> + let args = location.hash.split("#").slice(1); + var app = Elm.Main.init({ - node: document.getElementById('elm') + node: document.getElementById('elm'), + flags: [args[0], parseInt(args[1])] }); let ws = new WebSocket("ws://localhost:9160") |