@@ 20,7 20,7 @@
</div>
</div>
-<canvas style="width: 100%; height: 100%; background-color: purple;" id="canvas"></canvas>
+<canvas style="background-color: purple;" id="canvas"></canvas>
<script type="module">
// If you're getting build errors here | you need to run `just build_client_bundle` first, to compile client code
@@ 103,6 103,9 @@
}
let delta = time - start;
+ document.getElementById("canvas").width = window.innerWidth;
+ document.getElementById("canvas").height = window.innerHeight;
+
try {
render_frame(delta);
} catch (e) {