1
0
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:
Даниїл Григор'єв 2025-04-13 05:19:50 +03:00
parent d6390e88a4
commit 94b7c754ad
No known key found for this signature in database
GPG Key ID: B890DF16341D8C1D

View File

@ -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 });