diff options
Diffstat (limited to 'public/js/lib/views/index.js')
| -rw-r--r-- | public/js/lib/views/index.js | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/public/js/lib/views/index.js b/public/js/lib/views/index.js index d96bffb..d5ec35d 100644 --- a/public/js/lib/views/index.js +++ b/public/js/lib/views/index.js @@ -10,13 +10,20 @@ var SiteRouter = Router.extend({ }, initialize: function(){ - this.route() + if (! user.username) { + $("#login").show() + } + else { + this.route() + } }, lobby: function(){ + this.view = new LobbyView () }, room: function(name){ + this.view = new RoomView (name) }, })
\ No newline at end of file |
