Build 29068637

This commit is contained in:
Renan LE CARO 2025-04-08 15:17:14 +02:00
parent 4651bb396c
commit b530bf38d5
8 changed files with 30 additions and 25 deletions

View file

@ -690,8 +690,10 @@ export async function setLevel(gameState: GameState, l: number) {
// This caused problems with accented characters like the ô of côte d'ivoire for odd reasons
// background.src = 'data:image/svg+xml;base64,' + btoa(lvl.svg)
background.src = "data:image/svg+xml;UTF8," + lvl.svg;
document.body.style.setProperty("--level-background", lvl.color || "#000");
document.body.style.setProperty("--level-background", lvl.color || "#000000");
document
.getElementById("themeColor")
?.setAttribute("content", lvl.color || "#000000");
}
function setBrick(gameState: GameState, index: number, color: string) {