mirror of
https://git.leinelab.org/Mal/mr-crocs-adventures.git
synced 2026-03-17 21:02:23 +01:00
Fix for canvas background bug in Chromium
This commit is contained in:
@@ -214,7 +214,7 @@ export class Game
|
|||||||
this.canvas.style.backgroundImage = 'none';
|
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.width = window.innerWidth;
|
||||||
this.canvas.height = window.innerHeight;
|
this.canvas.height = window.innerHeight;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user