mirror of
https://github.com/tobspr/shapez.io.git
synced 2025-12-09 16:21:51 +00:00
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.
This commit is contained in:
parent
d6390e88a4
commit
94b7c754ad
@ -213,9 +213,6 @@ export class GameCore {
|
||||
logger.log("Creating new canvas");
|
||||
canvas = document.createElement("canvas");
|
||||
canvas.id = "ingame_Canvas";
|
||||
canvas.setAttribute("opaque", "true");
|
||||
canvas.setAttribute("webkitOpaque", "true");
|
||||
canvas.setAttribute("mozOpaque", "true");
|
||||
this.root.gameState.getDivElement().appendChild(canvas);
|
||||
context = canvas.getContext("2d", { alpha: false });
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user