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

File diff suppressed because one or more lines are too long

View file

@ -4,7 +4,7 @@
<meta charset="UTF-8">
<title>🧩 jigsaw.hyottoko.club</title>
<script type="module" crossorigin src="/assets/index.5791217a.js"></script>
<script type="module" crossorigin src="/assets/index.ac3207a7.js"></script>
<link rel="modulepreload" href="/assets/vendor.684f7bc8.js">
<link rel="stylesheet" href="/assets/index.5c03949d.css">
</head>

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')