Skip to content

Commit

Permalink
[enhance] logout -> redirect to /
Browse files Browse the repository at this point in the history
  • Loading branch information
Frederic Ye committed May 30, 2011
1 parent 4320464 commit 737e371
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.opa
Expand Up @@ -53,7 +53,7 @@ launch(author) =
broadcast({~author}, Dom.get_value(#entry))
logout() =
do broadcast({system}, "{author} has left the room")
Dom.transform([#main <- <a class="button" href="/">Reconnect</a>])
Client.goto("/")
<div id=#header><div id=#logo></div>
<div class="button" onclick={_ -> logout()}>Logout</div>
</div>
Expand Down

0 comments on commit 737e371

Please sign in to comment.