lobby needs no JS router

This commit is contained in:
Thibault Duplessis 2014-12-29 21:01:51 +01:00
parent b0450ff6e1
commit 5226bd05bb
3 changed files with 0 additions and 7 deletions

View file

@ -30,12 +30,10 @@
@moreJs = {
@jsAt(s"compiled/lichess.lobby${isProd??(".min")}.js")
@jsRoutes()
@embedJs {
lichess = lichess || {};
lichess.lobby = {
data: @Html(play.api.libs.json.Json.stringify(data)),
routes: lobbyRoutes.controllers,
i18n: @jsI18n()
};
}

View file

@ -1,4 +0,0 @@
@()(implicit ctx: Context)
@helper.javascriptRouter("lobbyRoutes")(
routes.javascript.Lobby.socket
)(ctx.req)

View file

@ -122,7 +122,6 @@ module.exports = function(env) {
}.bind(this), 2000);
}.bind(this);
this.router = env.routes;
this.trans = function(key) {
var str = env.i18n[key] || key;
Array.prototype.slice.call(arguments, 1).forEach(function(arg) {