summaryrefslogtreecommitdiff
path: root/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'index.html')
-rw-r--r--index.html6
1 files changed, 4 insertions, 2 deletions
diff --git a/index.html b/index.html
index e7d2a14..dfaff35 100644
--- a/index.html
+++ b/index.html
@@ -19,8 +19,10 @@
<script>
const game = {
- width: document.getElementById('game-canvas').width,
- height: document.getElementById('game-canvas').height,
+ canvas: {
+ width: document.getElementById('game-canvas').width,
+ height: document.getElementById('game-canvas').height,
+ }
};
</script>