mirror of
https://gitlab.com/lecarore/breakout71.git
synced 2025-04-22 13:06:15 -04:00
Build 29068637
This commit is contained in:
parent
4651bb396c
commit
b530bf38d5
8 changed files with 30 additions and 25 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue