diff options
Diffstat (limited to 'webhogg/wasm/index.html')
-rw-r--r-- | webhogg/wasm/index.html | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/webhogg/wasm/index.html b/webhogg/wasm/index.html index 350c58d..a992390 100644 --- a/webhogg/wasm/index.html +++ b/webhogg/wasm/index.html @@ -8,6 +8,11 @@ <canvas id='c' style='width: 100%; height: 100%; position: fixed; display: block; overflow: hidden;'> your browser is incompetent </canvas> + <script> + let canvas = document.getElementById('c'); + canvas.width = window.innerWidth; + canvas.height = window.innerHeight; + </script> <script src='pkg/main.js'></script> </body> </html> |