dont change bg colors in replay

This commit is contained in:
Zutatensuppe 2021-06-07 00:32:05 +02:00
parent ff69a5e195
commit 10d56e2898
3 changed files with 5 additions and 2 deletions

View file

@ -463,6 +463,9 @@ export async function main(
}
const playerBgColor = () => {
if (MODE === MODE_REPLAY) {
return localStorage.getItem('bg_color') || '#222222'
}
return (Game.getPlayerBgColor(gameId, clientId)
|| localStorage.getItem('bg_color')
|| '#222222')