Fix for canvas background bug in Chromium

This commit is contained in:
Mal
2025-11-01 14:34:46 +01:00
parent f3ac21839d
commit 2c9e14f777
2 changed files with 2 additions and 2 deletions

View File

@@ -214,7 +214,7 @@ export class Game
this.canvas.style.backgroundImage = 'none';
}
this.canvas.style.backgroundColor = this.level.getBackgroundColor();
document.body.style.backgroundColor = this.level.getBackgroundColor();
this.canvas.width = window.innerWidth;
this.canvas.height = window.innerHeight;