disable js signing
This commit is contained in:
parent
25607dc0b2
commit
85006d4341
|
@ -15,7 +15,7 @@ title = title,
|
|||
goodies = views.html.game.infoBox(pov, tour),
|
||||
chat = chat.map(c => base.chat(c, trans.chatRoom.str())),
|
||||
underchat = underchat.some,
|
||||
signedJs = pov.game.rated option routes.Round.signedJs(pov.gameId) map (_.toString)) {
|
||||
signedJs = hijackEnabled(pov.game) option routes.Round.signedJs(pov.gameId) map (_.toString)) {
|
||||
<div class="lichess_game clearfix lichess_player_@color not_spectator@if(!ctx.pref.captured) { hide_captured }"
|
||||
data-socket-url="@routes.Round.websocketPlayer(fullId)"
|
||||
data-table-url="@routes.Round.tablePlayer(fullId)"
|
||||
|
|
|
@ -38,12 +38,13 @@ final class Env(
|
|||
val NetDomain = config getString "net.domain"
|
||||
val ActorMapName = config getString "actor.map.name"
|
||||
val ActorName = config getString "actor.name"
|
||||
val HijackEnabled = config getBoolean "hijack.enabled"
|
||||
val HijackSalt = config getString "hijack.salt"
|
||||
val CollectionReminder = config getString "collection.reminder"
|
||||
}
|
||||
import settings._
|
||||
|
||||
val HijackEnabled = config getBoolean "hijack.enabled"
|
||||
|
||||
lazy val history = () => new History(ttl = MessageTtl)
|
||||
|
||||
val roundMap = system.actorOf(Props(new lila.hub.ActorMap[Round] {
|
||||
|
|
|
@ -8,9 +8,12 @@ import lila.game.Pov
|
|||
import lila.pref.Pref
|
||||
import lila.round.Env.{ current => roundEnv }
|
||||
import lila.user.UserContext
|
||||
import lila.game.Game
|
||||
|
||||
trait RoundHelper {
|
||||
|
||||
def hijackEnabled(game: Game) = game.rated && roundEnv.HijackEnabled
|
||||
|
||||
def moretimeSeconds = roundEnv.moretimeSeconds
|
||||
|
||||
def gameAnimationDelay = roundEnv.animationDelay
|
||||
|
|
Loading…
Reference in a new issue