Merge pull request #9225 from sharadsw/zen-spectator

Disallow zen mode when spectating
pull/9230/head
Thibault Duplessis 2021-06-21 19:57:44 +02:00 committed by GitHub
commit 9824a5528c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -574,7 +574,7 @@ export default class RoundController {
if (was !== is) {
lichess.quietMode = is;
$('body')
.toggleClass('playing', !this.data.spectator)
.toggleClass('playing', !this.data.player.spectator)
.toggleClass('no-select', is && this.clock && this.clock.millisOf(this.data.player.color) <= 3e5);
}
};