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:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,3 +1,3 @@
|
||||
.idea
|
||||
test*
|
||||
js/Setting.js
|
||||
js/Setting.js
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user