lobby needs no JS router
This commit is contained in:
parent
b0450ff6e1
commit
5226bd05bb
|
@ -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()
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
@()(implicit ctx: Context)
|
||||
@helper.javascriptRouter("lobbyRoutes")(
|
||||
routes.javascript.Lobby.socket
|
||||
)(ctx.req)
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue