hide rated hooks to anon
This commit is contained in:
parent
5250a53685
commit
8ed45cc6d5
|
@ -42,9 +42,8 @@ case class Hook(
|
|||
"uid" -> uid,
|
||||
"username" -> username,
|
||||
"elo" -> elo,
|
||||
"variant" -> realVariant.toString,
|
||||
"variant" -> (realVariant.exotic option realVariant.toString),
|
||||
"mode" -> realMode.toString,
|
||||
"color" -> color,
|
||||
"clock" -> clockOption ?? { c ⇒ renderClock(c.limit, c.increment) },
|
||||
"speed" -> chess.Speed(clockOption).id,
|
||||
"emin" -> realEloRange.map(_.min),
|
||||
|
|
|
@ -2062,9 +2062,11 @@ var lichess_sri = Math.random().toString(36).substring(5); // 8 chars
|
|||
}
|
||||
|
||||
function addHook(hook) {
|
||||
if (isRegistered || hook.mode != "Rated") {
|
||||
pool.push(hook);
|
||||
drawHooks();
|
||||
}
|
||||
}
|
||||
|
||||
function drawHooks() {
|
||||
var filter = lichess_preload.filter;
|
||||
|
|
|
@ -122,7 +122,7 @@ div.lichess_game_not_started {
|
|||
|
||||
div.lichess_overboard {
|
||||
position: absolute;
|
||||
z-index: 3;
|
||||
z-index: 199;
|
||||
width: 305px;
|
||||
top: 214px;
|
||||
left: 105px;
|
||||
|
|
Loading…
Reference in a new issue