From 94b7c754ad6fd2f637c83987ea2cb986703ac08e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=B0=D0=BD=D0=B8=D1=97=D0=BB=20=D0=93=D1=80=D0=B8?= =?UTF-8?q?=D0=B3=D0=BE=D1=80=27=D1=94=D0=B2?= Date: Sun, 13 Apr 2025 05:19:50 +0300 Subject: [PATCH] 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. --- src/js/game/core.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/js/game/core.js b/src/js/game/core.js index 9147778f..3d9130e0 100644 --- a/src/js/game/core.js +++ b/src/js/game/core.js @@ -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 });