Skip to content

Commit 94b7c75

Browse files
committed
Remove non-standard attribute assignment
Don't set the non-existent "opaque", "webkitOpaque" and "mozOpaque" properties on a canvas. Keep using { alpha: false } when initializing the context, which is the correct way.
1 parent d6390e8 commit 94b7c75

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/js/game/core.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -213,9 +213,6 @@ export class GameCore {
213213
logger.log("Creating new canvas");
214214
canvas = document.createElement("canvas");
215215
canvas.id = "ingame_Canvas";
216-
canvas.setAttribute("opaque", "true");
217-
canvas.setAttribute("webkitOpaque", "true");
218-
canvas.setAttribute("mozOpaque", "true");
219216
this.root.gameState.getDivElement().appendChild(canvas);
220217
context = canvas.getContext("2d", { alpha: false });
221218

0 commit comments

Comments
 (0)