aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2023-12-29 09:52:03 +0000
committerJuan J. Martinez <jjm@usebox.net>2023-12-29 09:52:03 +0000
commit49d733c84dc142ca34aa4bec3a6f66203018d822 (patch)
tree77f8425209f2da4e905d6a4d4fb2e9c305e107e4 /js
parentcc69545497a0c4f0cc64e298f2b206dae083fc17 (diff)
downloadjs-canvas-2023-49d733c84dc142ca34aa4bec3a6f66203018d822.tar.gz
js-canvas-2023-49d733c84dc142ca34aa4bec3a6f66203018d822.zip
Put back optimisations, prevent closure compiler from breaking code
Diffstat (limited to 'js')
-rw-r--r--js/game.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/js/game.js b/js/game.js
index f87b8a9..b45e905 100644
--- a/js/game.js
+++ b/js/game.js
@@ -80,9 +80,9 @@ class Game {
resize() {
const scale = Math.floor(window.innerHeight / this.canvas.height);
- this.canvas.style.imageRendering = "pixelated";
- this.canvas.style.transformOrigin = "top";
- this.canvas.style.transform = `scale(${scale})`;
+ this.canvas.style["imageRendering"] = "pixelated";
+ this.canvas.style["transformOrigin"] = "top";
+ this.canvas.style["transform"] = `scale(${scale})`;
}
loop(now) {